aboutsummaryrefslogtreecommitdiff
path: root/src/Haddock/Interface.hs
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2009-11-20 13:46:30 +0000
committerIan Lynagh <igloo@earth.li>2009-11-20 13:46:30 +0000
commit8c315fa0ff9283e1e277c50cdb0868cd248baddd (patch)
tree52c8bb05ea990bc754feafd386642b4536431bc1 /src/Haddock/Interface.hs
parentd3dcfadaa31815dc6ad1d45adf67d2386e33091c (diff)
Use defaultObjectTarget rather than HscAsm
This fixes haddock when we don't have a native code generator
Diffstat (limited to 'src/Haddock/Interface.hs')
-rw-r--r--src/Haddock/Interface.hs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Haddock/Interface.hs b/src/Haddock/Interface.hs
index 13e15871..6cbd4c9a 100644
--- a/src/Haddock/Interface.hs
+++ b/src/Haddock/Interface.hs
@@ -89,9 +89,9 @@ createInterfaces' verbosity modules flags instIfaceMap = do
modgraph' <- if needsTemplateHaskell modgraph
then do
dflags <- getSessionDynFlags
- _ <- setSessionDynFlags dflags { hscTarget = HscAsm }
- -- we need to set HscAsm on all the ModSummaries as well
- let addHscAsm m = m { ms_hspp_opts = (ms_hspp_opts m) { hscTarget = HscAsm } }
+ _ <- setSessionDynFlags dflags { hscTarget = defaultObjectTarget }
+ -- we need to set defaultObjectTarget on all the ModSummaries as well
+ let addHscAsm m = m { ms_hspp_opts = (ms_hspp_opts m) { hscTarget = defaultObjectTarget } }
return (map addHscAsm modgraph)
else return modgraph
#else