# grecord-gcc-switches

Causes the command line options that were used to invoke the compiler to be appended to the DW_AT_producer attribute in DWARF debugging information.

## Syntax

Linux: | -grecord-gcc-switches

macOS: | None

Windows: | None

## Arguments

None

## Default

OFF | The command line options that were used to invoke the compiler are not appended to the DW_AT_producer attribute in DWARF debugging information.

## Description

This option causes the command line options that were used to invoke the compiler to be appended to the DW_AT_producer attribute in DWARF debugging information.

The options are concatenated with whitespace separating them from each other and from the compiler version.

## IDE Equivalent

None

## Alternate Options

None

Parent topic: Output, Debug, and Precompiled Header Options