Commit 2ae93d3b authored by Edward Z. Yang's avatar Edward Z. Yang
Browse files

Tweaks for when to pass --builddir to cabal executable.


Signed-off-by: default avatarEdward Z. Yang <ezyang@cs.stanford.edu>
parent c2008fd8
......@@ -222,13 +222,15 @@ cabal' "sandbox" _ =
cabal' cmd args = do
env <- getTestEnv
let extra_args
-- Sandboxes manage dist dir
| testHaveSandbox env
= [ ]
-- These flags are only understood by some subcommands
-- TODO: Make this tighter
| otherwise
-- new-build commands are affected by testCabalProjectFile
| "new-" `isPrefixOf` cmd
= [ "--builddir", testWorkDir env
, "--project-file", testCabalProjectFile env ]
| otherwise
= [ "--builddir", testWorkDir env ]
global_args
| testHaveSandbox env
= [ "--sandbox-config-file", testSandboxConfigFile env ]
......
Markdown is supported
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