Skip to content

Commit 3ddbb38

Browse files
authored
Merge pull request #12143 from cabalism/doc/debug-info-bool
Show debug-info can be a boolean
2 parents 11500e1 + df6f98b commit 3ddbb38

1 file changed

Lines changed: 12 additions & 9 deletions

File tree

doc/cabal-project-description-file.rst

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1096,24 +1096,27 @@ feature was added.
10961096
Object code options
10971097
^^^^^^^^^^^^^^^^^^^
10981098

1099-
.. cfg-field:: debug-info: integer
1099+
.. cfg-field:: debug-info: boolean | integer [0 .. 3]
11001100
--enable-debug-info[=n]
11011101
--disable-debug-info
11021102
:synopsis: Build with debug info enabled.
11031103
:since: 1.22
11041104

11051105
:default: False
11061106

1107-
If the compiler (e.g., GHC 7.10 and later) supports outputting OS
1108-
native debug info (e.g., DWARF), setting ``debug-info: True`` will
1109-
instruct it to do so. See the GHC wiki page on :ghc-wiki:`DWARF`
1110-
for more information about this feature.
1107+
If the compiler supports outputting OS native debug info, setting
1108+
``debug-info: True`` will instruct it to do so. The command line variant of
1109+
this flag is ``--enable-debug-info`` and ``--disable-debug-info``.
11111110

1112-
(This field also accepts numeric syntax, but until GHC 8.2 this didn't
1113-
do anything.)
1111+
.. admonition:: GHC Behaviour
1112+
:class: tip
11141113

1115-
The command line variant of this flag is ``--enable-debug-info`` and
1116-
``--disable-debug-info``.
1114+
Until GHC 8.2, GHC didn't do anything if this field was forwarded to it
1115+
in numeric syntax.
1116+
1117+
GHC 7.10 and later support outputting OS native debug info (e.g.,
1118+
DWARF). See the GHC wiki page on :ghc-wiki:`DWARF` for more information
1119+
about this feature.
11171120

11181121
.. cfg-field:: split-sections: boolean
11191122
--enable-split-sections

0 commit comments

Comments
 (0)