diff options
Diffstat (limited to 'src/Haddock')
-rw-r--r-- | src/Haddock/Interface.hs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Haddock/Interface.hs b/src/Haddock/Interface.hs index dcd794af..9b676964 100644 --- a/src/Haddock/Interface.hs +++ b/src/Haddock/Interface.hs @@ -133,7 +133,8 @@ createIfaces0 verbosity modules flags instIfaceMap = enableCompilation :: ModuleGraph -> Ghc ModuleGraph enableCompilation modGraph = do - let enableComp d = d { hscTarget = defaultObjectTarget } + let enableComp d = let platform = targetPlatform d + in d { hscTarget = defaultObjectTarget platform } modifySessionDynFlags enableComp -- We need to update the DynFlags of the ModSummaries as well. let upd m = m { ms_hspp_opts = enableComp (ms_hspp_opts m) } |