This patch adds a documentation note about the LLVM_USE_SPLIT_DWARF CMake option which is useful to reduce linker memory usage.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
- Build Status
Buildable 39059 Build 39058: arc lint + arc unit
Event Timeline
FWIW, the current support is incomplete - if you just turn on -gsplit-dwarf, gdb may misbehave owing to a lack of index. (you'd need to add -Wl,-gdb-index to CMAKE_*_LINKER_FLAGS)
Arguably we could/should fix LLVM itself to pass that flag when using -gsplit-dwarf while tuning for gdb and/or improve the LLVM CMake build to add the flag.
Since --gdb-index option is added to LLVM_USE_SPLIT_DWARF (https://reviews.llvm.org/D108776) I think this could be landed with a couple of words added about --gdb-index.
BTW, the LLVM_USE_SPLIT_DWARF option is even documented at "GettingStarted" (https://reviews.llvm.org/D75425) already, but it's still not represented here, at full list.
llvm/docs/CMake.rst | ||
---|---|---|
625 | Should do, yeah - though I've not tried it. |
rebase, address nits, and committed in https://reviews.llvm.org/rGb2544fb9c5b38339572d50048563e8b6e72bf0ad, Thanks.
meory -> memory