Forwarded: https://github.com/llvm/llvm-project/issues/94690
Last-Update: 2024-06-04
This makes Clang default behaviour more like GCC where if debug
symbol generation is enabled, the command-line switches data
will be stored inside the debug symbols.
Last-Update: 2024-06-04
Gbp-Pq: Name clang-record-gcc-switches-by-default.patch
// By default, -gno-record-gcc-switches is set on and no recording.
auto GRecordSwitches =
Args.hasFlag(options::OPT_grecord_command_line,
- options::OPT_gno_record_command_line, false);
+ options::OPT_gno_record_command_line, true);
auto FRecordSwitches =
Args.hasFlag(options::OPT_frecord_command_line,
options::OPT_fno_record_command_line, false);