Skip to content

Commit c4825fb

Browse files
authored
Merge pull request #10468 from geekosaur/ghc-9.12.flags
add new options for ghc 9.12
2 parents cb167c8 + 6578978 commit c4825fb

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-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 [9, 12] ["-fmax-forced-spec-args", "-fwrite-if-compression"]
332333
]
333334

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

changelog.d/pr-10468

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
synopsis: Add new 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. Two options needed to be added to the
11+
list of options requiring `Int` parameters.
12+
13+
The new options, excluding warning and language options, are:
14+
15+
* `-fexpose-overloaded-unfoldings`
16+
* `-fmax-forced-spec-args=N`
17+
* `-fno-expose-overloaded-unfoldings`
18+
* `-fno-object-determinism`
19+
* `-fobject-determinism`
20+
* `-fwrite-if-compression=N`
21+
* `-optCmmP…`
22+
* `-optJSP…`
23+
* `-pgmCmmP`
24+
* `-pgmJSP`
25+
26+
As they all affect compilation and store hashes, the only necessary
27+
change was to list the two numeric options so they will be parsed
28+
correctly. To the best of our understanding, `-pgm*` and `-opt*`
29+
options are already handled as a group.
30+
31+
}

0 commit comments

Comments
 (0)