From 1a42b755966a8309871613dcbbb24301a09a8a0f Mon Sep 17 00:00:00 2001 From: Ilia Baryshnikov Date: Sun, 2 Aug 2026 15:03:24 +0300 Subject: [PATCH 1/3] remove -g option for --ghc --- Cabal/src/Distribution/Simple/Setup/Config.hs | 4 ++-- changelog.d/12201.md | 17 +++++++++++++++++ 2 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 changelog.d/12201.md diff --git a/Cabal/src/Distribution/Simple/Setup/Config.hs b/Cabal/src/Distribution/Simple/Setup/Config.hs index b11dfde6e1b..f469f8121d2 100644 --- a/Cabal/src/Distribution/Simple/Setup/Config.hs +++ b/Cabal/src/Distribution/Simple/Setup/Config.hs @@ -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") ] @@ -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 diff --git a/changelog.d/12201.md b/changelog.d/12201.md new file mode 100644 index 00000000000..23d4752f81f --- /dev/null +++ b/changelog.d/12201.md @@ -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) +``` From 840f252a796ab6fdb9e628d5a4e773626d15cd36 Mon Sep 17 00:00:00 2001 From: Ilya Baryshnikov Date: Sat, 22 Aug 2026 12:24:21 +0300 Subject: [PATCH 2/3] add unit-tests --- Cabal-tests/Cabal-tests.cabal | 1 + Cabal-tests/tests/UnitTests.hs | 2 + .../Distribution/Simple/Setup/Config.hs | 65 +++++++++++++++++++ changelog.d/12201.md | 10 +-- 4 files changed, 73 insertions(+), 5 deletions(-) create mode 100644 Cabal-tests/tests/UnitTests/Distribution/Simple/Setup/Config.hs diff --git a/Cabal-tests/Cabal-tests.cabal b/Cabal-tests/Cabal-tests.cabal index 6044ba1d780..8de90c34018 100644 --- a/Cabal-tests/Cabal-tests.cabal +++ b/Cabal-tests/Cabal-tests.cabal @@ -40,6 +40,7 @@ test-suite unit-tests UnitTests.Distribution.Simple.Glob UnitTests.Distribution.Simple.Program.GHC UnitTests.Distribution.Simple.Program.Internal + UnitTests.Distribution.Simple.Setup.Config UnitTests.Distribution.Simple.Utils UnitTests.Distribution.SPDX UnitTests.Distribution.System diff --git a/Cabal-tests/tests/UnitTests.hs b/Cabal-tests/tests/UnitTests.hs index 16b80813478..e5e82fce612 100644 --- a/Cabal-tests/tests/UnitTests.hs +++ b/Cabal-tests/tests/UnitTests.hs @@ -14,6 +14,7 @@ import qualified UnitTests.Distribution.Simple.Command import qualified UnitTests.Distribution.Simple.Glob import qualified UnitTests.Distribution.Simple.Program.GHC import qualified UnitTests.Distribution.Simple.Program.Internal +import qualified UnitTests.Distribution.Simple.Setup.Config import qualified UnitTests.Distribution.Simple.Utils import qualified UnitTests.Distribution.System import qualified UnitTests.Distribution.Utils.CharSet @@ -46,6 +47,7 @@ tests = , UnitTests.Distribution.Simple.Program.GHC.tests , testGroup "Distribution.Simple.Program.Internal" UnitTests.Distribution.Simple.Program.Internal.tests + , UnitTests.Distribution.Simple.Setup.Config.tests , testGroup "Distribution.Simple.Utils" $ UnitTests.Distribution.Simple.Utils.tests ghcPath , testGroup "Distribution.Utils.Generic" diff --git a/Cabal-tests/tests/UnitTests/Distribution/Simple/Setup/Config.hs b/Cabal-tests/tests/UnitTests/Distribution/Simple/Setup/Config.hs new file mode 100644 index 00000000000..90d1a371448 --- /dev/null +++ b/Cabal-tests/tests/UnitTests/Distribution/Simple/Setup/Config.hs @@ -0,0 +1,65 @@ +module UnitTests.Distribution.Simple.Setup.Config + ( tests + ) where + +import Distribution.Compiler (CompilerFlavor (..)) +import Distribution.Simple.Command (CommandParse (..), commandParseArgs) +import Distribution.Simple.Compiler (DebugInfoLevel (..)) +import Distribution.Simple.Flag qualified as Flag +import Distribution.Simple.Program.Db (emptyProgramDb) +import Distribution.Simple.Setup + ( ConfigFlags (..) + , configureCommand + , emptyConfigFlags + ) + +import Test.Tasty (TestTree, testGroup) +import Test.Tasty.HUnit + +tests :: TestTree +tests = + testGroup + "Distribution.Simple.Setup.Config" + [ testGroup + "--ghc / -g compiler selection" + [ testCase "--ghc selects GHC" $ + configHcFlavor (parse ["--ghc"]) @?= Flag.Flag GHC + , testCase "--ghcjs selects GHCJS" $ + configHcFlavor (parse ["--ghcjs"]) @?= Flag.Flag GHCJS + , testCase "-g no longer selects GHC" $ + configHcFlavor (parse ["-g"]) @?= Flag.NoFlag + , testCase "--ghc -g selects GHC and does not conflict" $ + configHcFlavor (parse ["--ghc", "-g"]) @?= Flag.Flag GHC + , testCase "-g --ghcjs selects GHCJS and does not conflict" $ + configHcFlavor (parse ["-g", "--ghcjs"]) @?= Flag.Flag GHCJS + ] + , testGroup + "--enable-debug-info / -g debug info" + [ testCase "-g sets NormalDebugInfo" $ + configDebugInfo (parse ["-g"]) @?= Flag.Flag NormalDebugInfo + , testCase "--enable-debug-info sets NormalDebugInfo" $ + configDebugInfo (parse ["--enable-debug-info"]) @?= Flag.Flag NormalDebugInfo + , testCase "-g1 sets MinimalDebugInfo" $ + configDebugInfo (parse ["-g1"]) @?= Flag.Flag MinimalDebugInfo + , testCase "-g3 sets MaximalDebugInfo" $ + configDebugInfo (parse ["-g3"]) @?= Flag.Flag MaximalDebugInfo + , testCase "--enable-debug-info=2 sets NormalDebugInfo" $ + configDebugInfo (parse ["--enable-debug-info=2"]) @?= Flag.Flag NormalDebugInfo + , testCase "--disable-debug-info sets NoDebugInfo" $ + configDebugInfo (parse ["--disable-debug-info"]) @?= Flag.Flag NoDebugInfo + ] + ] + +-- | Parse the given @configure@ command line arguments starting from +-- 'emptyConfigFlags', so that only the options actually given are set. +-- Parsing failures are reported as test failures. +parse :: [String] -> ConfigFlags +parse args = + case commandParseArgs (configureCommand emptyProgramDb) False args of + CommandReadyToGo (f, _) -> f emptyConfigFlags + CommandErrors errs -> + error $ "unexpected parse errors: " ++ show errs + CommandHelp _ -> + error "unexpected help" + CommandList _ -> + error "unexpected list" diff --git a/changelog.d/12201.md b/changelog.d/12201.md index 23d4752f81f..cddaa4256fa 100644 --- a/changelog.d/12201.md +++ b/changelog.d/12201.md @@ -8,10 +8,10 @@ prs: 12201 ```diff $ cabal build --help ... -- -g, --ghc compile with GHC -+ --ghc compile with GHC +- -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) +- --enable-debug-info[=n] # Emit debug info (n is 0--3, default is 0) ++ -g[n], --enable-debug-info[=n] ++ # Emit debug info (n is 0--3, default is 0) ``` From 0cf362f5272816a3dcd82afeb698944f49abf923 Mon Sep 17 00:00:00 2001 From: Ilya Baryshnikov Date: Mon, 24 Aug 2026 10:05:16 +0300 Subject: [PATCH 3/3] update all docs --- doc/cmd-v1-help/configure.txt | 5 +++-- doc/cmd-v1-help/install.txt | 5 +++-- doc/cmd-v1-help/reconfigure.txt | 5 +++-- doc/cmd-v2-help/bench.txt | 5 +++-- doc/cmd-v2-help/build.txt | 5 +++-- doc/cmd-v2-help/configure.txt | 5 +++-- doc/cmd-v2-help/exec.txt | 5 +++-- doc/cmd-v2-help/freeze.txt | 5 +++-- doc/cmd-v2-help/gen-bounds.txt | 5 +++-- doc/cmd-v2-help/haddock.txt | 5 +++-- doc/cmd-v2-help/install.txt | 5 +++-- doc/cmd-v2-help/list-bin.txt | 5 +++-- doc/cmd-v2-help/outdated.txt | 5 +++-- doc/cmd-v2-help/path.txt | 5 +++-- doc/cmd-v2-help/repl.txt | 5 +++-- doc/cmd-v2-help/run.txt | 5 +++-- doc/cmd-v2-help/target.txt | 5 +++-- doc/cmd-v2-help/test.txt | 5 +++-- doc/cmd-v2-help/update.txt | 5 +++-- doc/setup-help/configure.txt | 5 +++-- 20 files changed, 60 insertions(+), 40 deletions(-) diff --git a/doc/cmd-v1-help/configure.txt b/doc/cmd-v1-help/configure.txt index 7059ef5d400..ef20a2de111 100644 --- a/doc/cmd-v1-help/configure.txt +++ b/doc/cmd-v1-help/configure.txt @@ -15,7 +15,7 @@ Flags for v1-configure: files (default dist) --cabal-file=PATH # use this Cabal file --keep-temp-files # Keep temporary files. - -g, --ghc # Compile with GHC + --ghc # Compile with GHC --ghcjs # Compile with GHCJS --uhc # Compile with UHC -w PATH or -wPATH, --with-compiler=PATH @@ -73,7 +73,8 @@ Flags for v1-configure: # Build with optimization (n is 0--2, default is 1) --disable-optimization # Build without optimization - --enable-debug-info[=n] # Emit debug info (n is 0--3, default is 0) + -g[n], --enable-debug-info[=n] + # Emit debug info (n is 0--3, default is 0) --disable-debug-info # Don't emit debug info --enable-build-info # Enable build information generation during project building diff --git a/doc/cmd-v1-help/install.txt b/doc/cmd-v1-help/install.txt index b4937a719cc..2231897871c 100644 --- a/doc/cmd-v1-help/install.txt +++ b/doc/cmd-v1-help/install.txt @@ -26,7 +26,7 @@ Flags for v1-install: files (default dist) --cabal-file=PATH # use this Cabal file --keep-temp-files # Keep temporary files. - -g, --ghc # Compile with GHC + --ghc # Compile with GHC --ghcjs # Compile with GHCJS --uhc # Compile with UHC -w PATH or -wPATH, --with-compiler=PATH @@ -84,7 +84,8 @@ Flags for v1-install: # Build with optimization (n is 0--2, default is 1) --disable-optimization # Build without optimization - --enable-debug-info[=n] # Emit debug info (n is 0--3, default is 0) + -g[n], --enable-debug-info[=n] + # Emit debug info (n is 0--3, default is 0) --disable-debug-info # Don't emit debug info --enable-build-info # Enable build information generation during project building diff --git a/doc/cmd-v1-help/reconfigure.txt b/doc/cmd-v1-help/reconfigure.txt index 15d821d1358..3d1e44ab414 100644 --- a/doc/cmd-v1-help/reconfigure.txt +++ b/doc/cmd-v1-help/reconfigure.txt @@ -14,7 +14,7 @@ Flags for v1-reconfigure: files (default dist) --cabal-file=PATH # use this Cabal file --keep-temp-files # Keep temporary files. - -g, --ghc # Compile with GHC + --ghc # Compile with GHC --ghcjs # Compile with GHCJS --uhc # Compile with UHC -w PATH or -wPATH, --with-compiler=PATH @@ -72,7 +72,8 @@ Flags for v1-reconfigure: # Build with optimization (n is 0--2, default is 1) --disable-optimization # Build without optimization - --enable-debug-info[=n] # Emit debug info (n is 0--3, default is 0) + -g[n], --enable-debug-info[=n] + # Emit debug info (n is 0--3, default is 0) --disable-debug-info # Don't emit debug info --enable-build-info # Enable build information generation during project building diff --git a/doc/cmd-v2-help/bench.txt b/doc/cmd-v2-help/bench.txt index c5ba5a99f02..c6101513b98 100644 --- a/doc/cmd-v2-help/bench.txt +++ b/doc/cmd-v2-help/bench.txt @@ -19,7 +19,7 @@ Flags for bench: --builddir=DIR # The directory where Cabal puts generated build files (default dist) --keep-temp-files # Keep temporary files. - -g, --ghc # Compile with GHC + --ghc # Compile with GHC --ghcjs # Compile with GHCJS --uhc # Compile with UHC -w PATH or -wPATH, --with-compiler=PATH @@ -77,7 +77,8 @@ Flags for bench: # Build with optimization (n is 0--2, default is 1) --disable-optimization # Build without optimization - --enable-debug-info[=n] # Emit debug info (n is 0--3, default is 0) + -g[n], --enable-debug-info[=n] + # Emit debug info (n is 0--3, default is 0) --disable-debug-info # Don't emit debug info --enable-build-info # Enable build information generation during project building diff --git a/doc/cmd-v2-help/build.txt b/doc/cmd-v2-help/build.txt index c4d2f57a62f..2a1f83f8f60 100644 --- a/doc/cmd-v2-help/build.txt +++ b/doc/cmd-v2-help/build.txt @@ -19,7 +19,7 @@ Flags for build: --builddir=DIR # The directory where Cabal puts generated build files (default dist) --keep-temp-files # Keep temporary files. - -g, --ghc # Compile with GHC + --ghc # Compile with GHC --ghcjs # Compile with GHCJS --uhc # Compile with UHC -w PATH or -wPATH, --with-compiler=PATH @@ -77,7 +77,8 @@ Flags for build: # Build with optimization (n is 0--2, default is 1) --disable-optimization # Build without optimization - --enable-debug-info[=n] # Emit debug info (n is 0--3, default is 0) + -g[n], --enable-debug-info[=n] + # Emit debug info (n is 0--3, default is 0) --disable-debug-info # Don't emit debug info --enable-build-info # Enable build information generation during project building diff --git a/doc/cmd-v2-help/configure.txt b/doc/cmd-v2-help/configure.txt index c97f66063b1..f5eedcdb738 100644 --- a/doc/cmd-v2-help/configure.txt +++ b/doc/cmd-v2-help/configure.txt @@ -32,7 +32,7 @@ Flags for configure: --builddir=DIR # The directory where Cabal puts generated build files (default dist) --keep-temp-files # Keep temporary files. - -g, --ghc # Compile with GHC + --ghc # Compile with GHC --ghcjs # Compile with GHCJS --uhc # Compile with UHC -w PATH or -wPATH, --with-compiler=PATH @@ -90,7 +90,8 @@ Flags for configure: # Build with optimization (n is 0--2, default is 1) --disable-optimization # Build without optimization - --enable-debug-info[=n] # Emit debug info (n is 0--3, default is 0) + -g[n], --enable-debug-info[=n] + # Emit debug info (n is 0--3, default is 0) --disable-debug-info # Don't emit debug info --enable-build-info # Enable build information generation during project building diff --git a/doc/cmd-v2-help/exec.txt b/doc/cmd-v2-help/exec.txt index ea4368e9cd8..feb421b2c23 100644 --- a/doc/cmd-v2-help/exec.txt +++ b/doc/cmd-v2-help/exec.txt @@ -21,7 +21,7 @@ Flags for exec: --builddir=DIR # The directory where Cabal puts generated build files (default dist) --keep-temp-files # Keep temporary files. - -g, --ghc # Compile with GHC + --ghc # Compile with GHC --ghcjs # Compile with GHCJS --uhc # Compile with UHC -w PATH or -wPATH, --with-compiler=PATH @@ -79,7 +79,8 @@ Flags for exec: # Build with optimization (n is 0--2, default is 1) --disable-optimization # Build without optimization - --enable-debug-info[=n] # Emit debug info (n is 0--3, default is 0) + -g[n], --enable-debug-info[=n] + # Emit debug info (n is 0--3, default is 0) --disable-debug-info # Don't emit debug info --enable-build-info # Enable build information generation during project building diff --git a/doc/cmd-v2-help/freeze.txt b/doc/cmd-v2-help/freeze.txt index 64269ce7f8e..089d7e0f609 100644 --- a/doc/cmd-v2-help/freeze.txt +++ b/doc/cmd-v2-help/freeze.txt @@ -24,7 +24,7 @@ Flags for freeze: --builddir=DIR # The directory where Cabal puts generated build files (default dist) --keep-temp-files # Keep temporary files. - -g, --ghc # Compile with GHC + --ghc # Compile with GHC --ghcjs # Compile with GHCJS --uhc # Compile with UHC -w PATH or -wPATH, --with-compiler=PATH @@ -82,7 +82,8 @@ Flags for freeze: # Build with optimization (n is 0--2, default is 1) --disable-optimization # Build without optimization - --enable-debug-info[=n] # Emit debug info (n is 0--3, default is 0) + -g[n], --enable-debug-info[=n] + # Emit debug info (n is 0--3, default is 0) --disable-debug-info # Don't emit debug info --enable-build-info # Enable build information generation during project building diff --git a/doc/cmd-v2-help/gen-bounds.txt b/doc/cmd-v2-help/gen-bounds.txt index 8764aac5bda..95f99bc331e 100644 --- a/doc/cmd-v2-help/gen-bounds.txt +++ b/doc/cmd-v2-help/gen-bounds.txt @@ -10,7 +10,7 @@ Flags for gen-bounds: --builddir=DIR # The directory where Cabal puts generated build files (default dist) --keep-temp-files # Keep temporary files. - -g, --ghc # Compile with GHC + --ghc # Compile with GHC --ghcjs # Compile with GHCJS --uhc # Compile with UHC -w PATH or -wPATH, --with-compiler=PATH @@ -68,7 +68,8 @@ Flags for gen-bounds: # Build with optimization (n is 0--2, default is 1) --disable-optimization # Build without optimization - --enable-debug-info[=n] # Emit debug info (n is 0--3, default is 0) + -g[n], --enable-debug-info[=n] + # Emit debug info (n is 0--3, default is 0) --disable-debug-info # Don't emit debug info --enable-build-info # Enable build information generation during project building diff --git a/doc/cmd-v2-help/haddock.txt b/doc/cmd-v2-help/haddock.txt index 2e5046e47f7..9ec68af470f 100644 --- a/doc/cmd-v2-help/haddock.txt +++ b/doc/cmd-v2-help/haddock.txt @@ -24,7 +24,7 @@ Flags for haddock: --builddir=DIR # The directory where Cabal puts generated build files (default dist) --keep-temp-files # Keep temporary files. - -g, --ghc # Compile with GHC + --ghc # Compile with GHC --ghcjs # Compile with GHCJS --uhc # Compile with UHC -w PATH or -wPATH, --with-compiler=PATH @@ -82,7 +82,8 @@ Flags for haddock: # Build with optimization (n is 0--2, default is 1) --disable-optimization # Build without optimization - --enable-debug-info[=n] # Emit debug info (n is 0--3, default is 0) + -g[n], --enable-debug-info[=n] + # Emit debug info (n is 0--3, default is 0) --disable-debug-info # Don't emit debug info --enable-build-info # Enable build information generation during project building diff --git a/doc/cmd-v2-help/install.txt b/doc/cmd-v2-help/install.txt index 8850a2a2890..b08003a3d41 100644 --- a/doc/cmd-v2-help/install.txt +++ b/doc/cmd-v2-help/install.txt @@ -20,7 +20,7 @@ Flags for install: --builddir=DIR # The directory where Cabal puts generated build files (default dist) --keep-temp-files # Keep temporary files. - -g, --ghc # Compile with GHC + --ghc # Compile with GHC --ghcjs # Compile with GHCJS --uhc # Compile with UHC -w PATH or -wPATH, --with-compiler=PATH @@ -60,7 +60,8 @@ Flags for install: # Build with optimization (n is 0--2, default is 1) --disable-optimization # Build without optimization - --enable-debug-info[=n] # Emit debug info (n is 0--3, default is 0) + -g[n], --enable-debug-info[=n] + # Emit debug info (n is 0--3, default is 0) --disable-debug-info # Don't emit debug info --enable-build-info # Enable build information generation during project building diff --git a/doc/cmd-v2-help/list-bin.txt b/doc/cmd-v2-help/list-bin.txt index 3b8b8f01156..5a96ea2af0a 100644 --- a/doc/cmd-v2-help/list-bin.txt +++ b/doc/cmd-v2-help/list-bin.txt @@ -11,7 +11,7 @@ Flags for list-bin: --builddir=DIR # The directory where Cabal puts generated build files (default dist) --keep-temp-files # Keep temporary files. - -g, --ghc # Compile with GHC + --ghc # Compile with GHC --ghcjs # Compile with GHCJS --uhc # Compile with UHC -w PATH or -wPATH, --with-compiler=PATH @@ -69,7 +69,8 @@ Flags for list-bin: # Build with optimization (n is 0--2, default is 1) --disable-optimization # Build without optimization - --enable-debug-info[=n] # Emit debug info (n is 0--3, default is 0) + -g[n], --enable-debug-info[=n] + # Emit debug info (n is 0--3, default is 0) --disable-debug-info # Don't emit debug info --enable-build-info # Enable build information generation during project building diff --git a/doc/cmd-v2-help/outdated.txt b/doc/cmd-v2-help/outdated.txt index 85a07dd7493..5094ada968e 100644 --- a/doc/cmd-v2-help/outdated.txt +++ b/doc/cmd-v2-help/outdated.txt @@ -12,7 +12,7 @@ Flags for outdated: --builddir=DIR # The directory where Cabal puts generated build files (default dist) --keep-temp-files # Keep temporary files. - -g, --ghc # Compile with GHC + --ghc # Compile with GHC --ghcjs # Compile with GHCJS --uhc # Compile with UHC -w PATH or -wPATH, --with-compiler=PATH @@ -70,7 +70,8 @@ Flags for outdated: # Build with optimization (n is 0--2, default is 1) --disable-optimization # Build without optimization - --enable-debug-info[=n] # Emit debug info (n is 0--3, default is 0) + -g[n], --enable-debug-info[=n] + # Emit debug info (n is 0--3, default is 0) --disable-debug-info # Don't emit debug info --enable-build-info # Enable build information generation during project building diff --git a/doc/cmd-v2-help/path.txt b/doc/cmd-v2-help/path.txt index 74f4a3b3355..d21197262fe 100644 --- a/doc/cmd-v2-help/path.txt +++ b/doc/cmd-v2-help/path.txt @@ -13,7 +13,7 @@ Flags for path: --builddir=DIR # The directory where Cabal puts generated build files (default dist) --keep-temp-files # Keep temporary files. - -g, --ghc # Compile with GHC + --ghc # Compile with GHC --ghcjs # Compile with GHCJS --uhc # Compile with UHC -w PATH or -wPATH, --with-compiler=PATH @@ -71,7 +71,8 @@ Flags for path: # Build with optimization (n is 0--2, default is 1) --disable-optimization # Build without optimization - --enable-debug-info[=n] # Emit debug info (n is 0--3, default is 0) + -g[n], --enable-debug-info[=n] + # Emit debug info (n is 0--3, default is 0) --disable-debug-info # Don't emit debug info --enable-build-info # Enable build information generation during project building diff --git a/doc/cmd-v2-help/repl.txt b/doc/cmd-v2-help/repl.txt index 2913c652167..7a491d3c4ef 100644 --- a/doc/cmd-v2-help/repl.txt +++ b/doc/cmd-v2-help/repl.txt @@ -22,7 +22,7 @@ Flags for repl: --builddir=DIR # The directory where Cabal puts generated build files (default dist) --keep-temp-files # Keep temporary files. - -g, --ghc # Compile with GHC + --ghc # Compile with GHC --ghcjs # Compile with GHCJS --uhc # Compile with UHC -w PATH or -wPATH, --with-compiler=PATH @@ -80,7 +80,8 @@ Flags for repl: # Build with optimization (n is 0--2, default is 1) --disable-optimization # Build without optimization - --enable-debug-info[=n] # Emit debug info (n is 0--3, default is 0) + -g[n], --enable-debug-info[=n] + # Emit debug info (n is 0--3, default is 0) --disable-debug-info # Don't emit debug info --enable-build-info # Enable build information generation during project building diff --git a/doc/cmd-v2-help/run.txt b/doc/cmd-v2-help/run.txt index f8dd2b32a58..50d97709db7 100644 --- a/doc/cmd-v2-help/run.txt +++ b/doc/cmd-v2-help/run.txt @@ -25,7 +25,7 @@ Flags for run: --builddir=DIR # The directory where Cabal puts generated build files (default dist) --keep-temp-files # Keep temporary files. - -g, --ghc # Compile with GHC + --ghc # Compile with GHC --ghcjs # Compile with GHCJS --uhc # Compile with UHC -w PATH or -wPATH, --with-compiler=PATH @@ -83,7 +83,8 @@ Flags for run: # Build with optimization (n is 0--2, default is 1) --disable-optimization # Build without optimization - --enable-debug-info[=n] # Emit debug info (n is 0--3, default is 0) + -g[n], --enable-debug-info[=n] + # Emit debug info (n is 0--3, default is 0) --disable-debug-info # Don't emit debug info --enable-build-info # Enable build information generation during project building diff --git a/doc/cmd-v2-help/target.txt b/doc/cmd-v2-help/target.txt index 6dddae62364..789fe6e5ecc 100644 --- a/doc/cmd-v2-help/target.txt +++ b/doc/cmd-v2-help/target.txt @@ -41,7 +41,7 @@ Flags for target: --builddir=DIR # The directory where Cabal puts generated build files (default dist) --keep-temp-files # Keep temporary files. - -g, --ghc # Compile with GHC + --ghc # Compile with GHC --ghcjs # Compile with GHCJS --uhc # Compile with UHC -w PATH or -wPATH, --with-compiler=PATH @@ -99,7 +99,8 @@ Flags for target: # Build with optimization (n is 0--2, default is 1) --disable-optimization # Build without optimization - --enable-debug-info[=n] # Emit debug info (n is 0--3, default is 0) + -g[n], --enable-debug-info[=n] + # Emit debug info (n is 0--3, default is 0) --disable-debug-info # Don't emit debug info --enable-build-info # Enable build information generation during project building diff --git a/doc/cmd-v2-help/test.txt b/doc/cmd-v2-help/test.txt index 00c529d1a3b..edf3b3cc760 100644 --- a/doc/cmd-v2-help/test.txt +++ b/doc/cmd-v2-help/test.txt @@ -21,7 +21,7 @@ Flags for test: --builddir=DIR # The directory where Cabal puts generated build files (default dist) --keep-temp-files # Keep temporary files. - -g, --ghc # Compile with GHC + --ghc # Compile with GHC --ghcjs # Compile with GHCJS --uhc # Compile with UHC -w PATH or -wPATH, --with-compiler=PATH @@ -79,7 +79,8 @@ Flags for test: # Build with optimization (n is 0--2, default is 1) --disable-optimization # Build without optimization - --enable-debug-info[=n] # Emit debug info (n is 0--3, default is 0) + -g[n], --enable-debug-info[=n] + # Emit debug info (n is 0--3, default is 0) --disable-debug-info # Don't emit debug info --enable-build-info # Enable build information generation during project building diff --git a/doc/cmd-v2-help/update.txt b/doc/cmd-v2-help/update.txt index cc4e6a3ea26..6ef7beaf483 100644 --- a/doc/cmd-v2-help/update.txt +++ b/doc/cmd-v2-help/update.txt @@ -11,7 +11,7 @@ Flags for update: --builddir=DIR # The directory where Cabal puts generated build files (default dist) --keep-temp-files # Keep temporary files. - -g, --ghc # Compile with GHC + --ghc # Compile with GHC --ghcjs # Compile with GHCJS --uhc # Compile with UHC -w PATH or -wPATH, --with-compiler=PATH @@ -69,7 +69,8 @@ Flags for update: # Build with optimization (n is 0--2, default is 1) --disable-optimization # Build without optimization - --enable-debug-info[=n] # Emit debug info (n is 0--3, default is 0) + -g[n], --enable-debug-info[=n] + # Emit debug info (n is 0--3, default is 0) --disable-debug-info # Don't emit debug info --enable-build-info # Enable build information generation during project building diff --git a/doc/setup-help/configure.txt b/doc/setup-help/configure.txt index a5b3587cdd3..5d997adba31 100644 --- a/doc/setup-help/configure.txt +++ b/doc/setup-help/configure.txt @@ -15,7 +15,7 @@ Flags for configure: files (default dist) --cabal-file=PATH # use this Cabal file --keep-temp-files # Keep temporary files. - -g, --ghc # Compile with GHC + --ghc # Compile with GHC --ghcjs # Compile with GHCJS --uhc # Compile with UHC -w PATH or -wPATH, --with-compiler=PATH @@ -73,7 +73,8 @@ Flags for configure: # Build with optimization (n is 0--2, default is 1) --disable-optimization # Build without optimization - --enable-debug-info[=n] # Emit debug info (n is 0--3, default is 0) + -g[n], --enable-debug-info[=n] + # Emit debug info (n is 0--3, default is 0) --disable-debug-info # Don't emit debug info --enable-build-info # Enable build information generation during project building