Skip to content

Commit

Permalink
ghc -fno-safe-haskell -M ...
Browse files Browse the repository at this point in the history
  • Loading branch information
shayne-fletcher committed Aug 18, 2024
1 parent 3fc1432 commit e04bf97
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ghc-lib-gen/src/Ghclibgen.hs
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,7 @@ calcModuleDeps includeDirs _hsSrcDirs hsSrcIncludes ghcFlavor cabalPackageDb ghc
[ ["ghc -M -dep-suffix '' -dep-makefile " ++ ghcMakeModeOutputFile],
["-clear-package-db -global-package-db -user-package-db -package-db " ++ cabalPackageDb],
["-package semaphore-compat" | series >= GHC_9_8],
["-fno-safe-haskell"], -- avoid warning: [GHC-98887] -XGeneralizedNewtypeDeriving is not allowed in Safe Haskell; ignoring -XGeneralizedNewtypeDeriving
includeDirs,
hsSrcIncludes,
[placeholderModulesDir </> "Main.hs"]
Expand Down

0 comments on commit e04bf97

Please sign in to comment.