From 8c315fa0ff9283e1e277c50cdb0868cd248baddd Mon Sep 17 00:00:00 2001 From: Ian Lynagh Date: Fri, 20 Nov 2009 13:46:30 +0000 Subject: Use defaultObjectTarget rather than HscAsm This fixes haddock when we don't have a native code generator --- src/Haddock/Interface.hs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/Haddock') 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 -- cgit v1.2.3