diff --git a/Cabal/src/Distribution/Simple/Program/GHC.hs b/Cabal/src/Distribution/Simple/Program/GHC.hs index ce0ea9db92a..2f018af82c3 100644 --- a/Cabal/src/Distribution/Simple/Program/GHC.hs +++ b/Cabal/src/Distribution/Simple/Program/GHC.hs @@ -329,6 +329,7 @@ normaliseGhcArgs (Just ghcVersion) PackageDescription{..} ghcArgs ] , from [8, 2] ["-fmax-uncovered-patterns", "-fmax-errors"] , from [8, 4] $ to [8, 6] ["-fmax-valid-substitutions"] + , from [8, 12] ["-fmax-forced-spec-args"] ] dropIntFlag :: Bool -> String -> String -> Any diff --git a/changelog.d/pr-10468 b/changelog.d/pr-10468 new file mode 100644 index 00000000000..e8f3c1a952a --- /dev/null +++ b/changelog.d/pr-10468 @@ -0,0 +1,26 @@ +synopsis: Add new non-compilation-affecting options from ghc 9.12 +packages: Cabal +prs: #10468 +significance: + +description: { + +- ghc 9.12 adds several new command line options, divided between + `LANGUAGE`s (already added), warnings, new preprocessor control options, + and compilation control options. Only one of these doesn't affect + compilation and has been added to the recomp filters. A second needed + to be added to the list of options requiring `Int` parameters. + + The new options, excluding warning and language options, are: + + * `-fexpose-overloaded-unfoldings` + * `-fmax-forced-spec-args` + * `-fno-expose-overloaded-unfoldings` + * `-fobject-determinism` + * `-fwrite-if-compression` + * `-optCmmP` + * `-optJSP` + * `-pgmCmmP` + * `-pgmJSP` + +}