Skip to content

Commit 7b96ee2

Browse files
committed
add new non-compile-affecting options for ghc 9.12
1 parent 470ee94 commit 7b96ee2

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

Cabal/src/Distribution/Simple/Program/GHC.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,7 @@ normaliseGhcArgs (Just ghcVersion) PackageDescription{..} ghcArgs
329329
]
330330
, from [8, 2] ["-fmax-uncovered-patterns", "-fmax-errors"]
331331
, from [8, 4] $ to [8, 6] ["-fmax-valid-substitutions"]
332+
, from [8, 12] ["-fmax-forced-spec-args", "-fwrite-if-compression"]
332333
]
333334

334335
dropIntFlag :: Bool -> String -> String -> Any

changelog.d/pr-10468

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
synopsis: Add new non-compilation-affecting options from ghc 9.12
2+
packages: Cabal
3+
prs: #10468
4+
significance:
5+
6+
description: {
7+
8+
- ghc 9.12 adds several new command line options, divided between
9+
`LANGUAGE`s (already added), warnings, new preprocessor control options,
10+
and compilation control options. Only one of these doesn't affect
11+
compilation and has been added to the recomp filters. A second needed
12+
to be added to the list of options requiring `Int` parameters.
13+
14+
The new options, excluding warning and language options, are:
15+
16+
* `-fexpose-overloaded-unfoldings`
17+
* `-fmax-forced-spec-args`
18+
* `-fno-expose-overloaded-unfoldings`
19+
* `-fobject-determinism`
20+
* `-fwrite-if-compression`
21+
* `-optCmmP`
22+
* `-optJSP`
23+
* `-pgmCmmP`
24+
* `-pgmJSP`
25+
26+
}

0 commit comments

Comments
 (0)