aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordavve@dtek.chalmers.se <David Waern>2007-03-25 03:22:08 +0000
committerdavve@dtek.chalmers.se <David Waern>2007-03-25 03:22:08 +0000
commit7d04a6d5c770d28488d105c3c65e8f14984a7cbe (patch)
tree6af8f989ffa76f37156f6f7f07fef4e9fa17fd20
parent9a2a04c3610270c13cf60186a22774ad580d4928 (diff)
Avoid a GHC bug with parseStaticFlags []
-rw-r--r--src/Main.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Main.hs b/src/Main.hs
index cb1e4f2f..96ea3b4b 100644
--- a/src/Main.hs
+++ b/src/Main.hs
@@ -310,6 +310,7 @@ startGHC libDir = do
sortAndCheckModules :: Session -> [FilePath] -> IO [CheckedMod]
sortAndCheckModules session files = do
+ parseStaticFlags [] -- to avoid a GHC bug
targets <- mapM (\s -> guessTarget s Nothing) files
setTargets session targets
mbModGraph <- depanal session [] True