[PATCH] D58628: [cmake] Add option to enable gdb-index.

Michael Liao via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 25 13:08:22 PST 2019


hliao added a comment.

In D58628#1409639 <https://reviews.llvm.org/D58628#1409639>, @dblaikie wrote:

> Would it be simpler/effective to add "-fuse-ld=gold -Wl,--gdb-index" to your linker flags to enable both these things, rather than having specific CMake support for either/both?


The additional option could serve as the start point and option to use ld.bfd + objcopy to generate gdbindex on platforms without gold, says non x86 or arm processors.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D58628/new/

https://reviews.llvm.org/D58628





More information about the llvm-commits mailing list