[all-commits] [llvm/llvm-project] b1b68b: [CMake] Add `--gdb-index` option to linker if spli...

Anton Afanasyev via All-commits all-commits at lists.llvm.org
Mon Aug 30 02:23:46 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b1b68b4c0190b7fc7f0ebe823277966056b39494
      https://github.com/llvm/llvm-project/commit/b1b68b4c0190b7fc7f0ebe823277966056b39494
  Author: Anton Afanasyev <anton.a.afanasyev at gmail.com>
  Date:   2021-08-30 (Mon, 30 Aug 2021)

  Changed paths:
    M llvm/cmake/modules/HandleLLVMOptions.cmake

  Log Message:
  -----------
  [CMake] Add `--gdb-index` option to linker if split dwarf compiling

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

Differential Revision: https://reviews.llvm.org/D108776




More information about the All-commits mailing list