- Add -gsplit-dwarf as an option instead of a definition.
- Only add that option on compilers supporting dwarf splitting, such as clang and gcc.
Details
Details
- Reviewers
echristo pcc aprantl - Commits
- rG1a52d3d47b84: [cmake] Fix LLVM_USE_SPLIT_DWARF
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Not a big deal, but in LLDB we are compiling a handful of Objective-C++ (.mm) files. Would these get included by $<COMPILE_LANGUAGE:CXX>?
Comment Actions
One thing I ran into by accident recently was that -DLLVM_USE_SPLIT_DWARF=1 in a Release (no debug info) also turned non debug info. Is that still the case and if yes, should we conditionalize this on building with debug info?
Comment Actions
That makes sense to me. At least, in release build, we won't generate
unnecessary files.