mirror of
https://github.com/IHaskell/IHaskell.git
synced 2025-04-19 12:56:08 +00:00
Compiles on 7.8, but fails with errors
This commit is contained in:
parent
9c6490bf9f
commit
b748c5b7ca
@ -926,7 +926,12 @@ doLoadModule name modName = do
|
||||
flip gcatch (unload importedModules) $ do
|
||||
-- Compile loaded modules.
|
||||
flags <- getSessionDynFlags
|
||||
#if MIN_VERSION_ghc(7,8,0)
|
||||
let objTarget = defaultObjectTarget platform
|
||||
platform = targetPlatform flags
|
||||
#else
|
||||
let objTarget = defaultObjectTarget
|
||||
#endif
|
||||
setSessionDynFlags flags{ hscTarget = objTarget }
|
||||
|
||||
-- Clear old targets to be sure.
|
||||
|
Loading…
x
Reference in New Issue
Block a user