Skip to content

Commit 71120e2

Browse files
committed
add new non-compile-affecting options for ghc 9.12
1 parent cc2c9d8 commit 71120e2

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-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: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
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. 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+
* `-fobject-determinism`
19+
* `-fwrite-if-compression=N`
20+
* `-optCmmP…`
21+
* `-optJSP…`
22+
* `-pgmCmmP`
23+
* `-pgmJSP`
24+
25+
}

0 commit comments

Comments
 (0)