Skip to content

debug-info type is not only integer #12142

Description

@philderbeast

What is wrong with the docs?
The legacy parser can parse booleans for debug-info but its type is shown as integer, not integer | boolean in the users guide.

.. cfg-field:: debug-info: integer
--enable-debug-info[=n]
--disable-debug-info
:synopsis: Build with debug info enabled.
:since: 1.22
:default: False
If the compiler (e.g., GHC 7.10 and later) supports outputting OS
native debug info (e.g., DWARF), setting ``debug-info: True`` will
instruct it to do so. See the GHC wiki page on :ghc-wiki:`DWARF`
for more information about this feature.
(This field also accepts numeric syntax, but until GHC 8.2 this didn't
do anything.)
The command line variant of this flag is ``--enable-debug-info`` and
``--disable-debug-info``.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions