This is an archive of the discontinued LLVM Phabricator instance.

[CMake] Add `--gdb-index` option to linker if split dwarf compiling
ClosedPublic

Authored by anton-afanasyev on Aug 26 2021, 11:42 AM.

Details

Summary

The option --gdb-index should be passed to linker if compiler is invoked
with -gsplit-dwarf option. This allows debugger to locate the appropriate
units quickly. See "Invocation" section here: https://gcc.gnu.org/wiki/DebugFission

Suggested by @dblaikie here: https://reviews.llvm.org/D68556#1698442

Diff Detail