Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Cabal/src/Distribution/Simple/Setup/Config.hs
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ configureOptions showOrParseArgs =
configHcFlavor
(\v flags -> flags{configHcFlavor = v})
( choiceOpt
[ (Flag GHC, ("g", ["ghc"]), "Compile with GHC")
[ (Flag GHC, ([], ["ghc"]), "Compile with GHC")
, (Flag GHCJS, ([], ["ghcjs"]), "Compile with GHCJS")
, (Flag UHC, ([], ["uhc"]), "Compile with UHC")
]
Expand Down Expand Up @@ -599,7 +599,7 @@ configureOptions showOrParseArgs =
Flag MaximalDebugInfo -> [Just "3"]
_ -> []
)
""
"g"
["enable-debug-info"]
"Emit debug info (n is 0--3, default is 0)"
, noArg
Expand Down
17 changes: 17 additions & 0 deletions changelog.d/12201.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
synopsis: Removes the short `-g` option for the `--ghc` flag
packages: [Cabal]
prs: 12201
---

- Removes the short `-g` option for the `--ghc` flag. This is now used as the short option for `--enable-debug-info`.
```diff
$ cabal build --help
...
- -g, --ghc compile with GHC
+ --ghc compile with GHC
...
- --enable-debug-info[=n] Emit debug info (n is 0--3, default is 0)
+ -g n or -gn, --enable-debug-info[=n]
+ Emit debug info (n is 0--3, default is 0)
```
Loading