We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 705d47d commit 28b3e83Copy full SHA for 28b3e83
ghcide/session-loader/Development/IDE/Session.hs
@@ -503,7 +503,10 @@ cradleToOptsAndLibDir cradle file = do
503
emptyHscEnv :: IORef NameCache -> FilePath -> IO HscEnv
504
emptyHscEnv nc libDir = do
505
env <- runGhc (Just libDir) getSession
506
- -- initDynLinker env -- This causes ghc9 to crash
+#if !MIN_GHC_API_VERSION(9,0,0)
507
+ -- This causes ghc9 to crash
508
+ initDynLinker env
509
+#endif
510
pure $ setNameCache nc env{ hsc_dflags = (hsc_dflags env){useUnicode = True } }
511
512
data TargetDetails = TargetDetails
0 commit comments