Commit ece620a1 authored by Duncan Coutts's avatar Duncan Coutts
Browse files

Use Setup.hs when calling setup

In case we've got a compiled Setup binary
parent 7df886b5
......@@ -106,7 +106,7 @@ cabal_install spec = do
-- | Returns the command that was issued, the return code, and hte output text
cabal :: PackageSpec -> [String] -> IO (String, ExitCode, String)
cabal spec cabalArgs =
run (Just $ directory spec) "runhaskell" (["Setup"] ++ cabalArgs)
run (Just $ directory spec) "runghc" (["Setup.hs"] ++ cabalArgs)
-- | Returns the command that was issued, the return code, and hte output text
run :: Maybe FilePath -> String -> [String] -> IO (String, ExitCode, String)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment