Issue |
81650
|
Summary |
[CMake] Support package/install with LLVM_USE_SPLIT_DWARF
|
Labels |
new issue
|
Assignees |
|
Reporter |
jsji
|
[MikeHolman](https://discourse.llvm.org/u/MikeHolman)
(https://discourse.llvm.org/t/rfc-turn-on-llvm-use-split-dwarf-by-default-for-linux-debug-build/76724/24?u=jsji)
How does this work with packages/installs? It has been a while since I looked at this, but I recall that the .dwo files do not get installed by the install target. Maybe they can just be copied over to the install directory, but I imagine there are pathing issues to sort out. Anyway, I think this is something to consider (and hopefully fix!) before changing the default.
[dblaikie](https://discourse.llvm.org/u/dblaikie)
(https://discourse.llvm.org/t/rfc-turn-on-llvm-use-split-dwarf-by-default-for-linux-debug-build/76724/25?u=jsji)
This proposal is only to change the defaults for Debug builds - presumably no one’s making a package installation from them.
but if they were, they’d need to build a .dwp file by merging all the .dwo files - I don’t think we have any build infrastructure/rules for doing that - **you can run a dwp tool (binutils dwp or llvm-dwp) in -e mode, passing it the executable, and it’ll read the skeleton units from the executable to find all the dwo paths - and merge those together into <binary>.dwp**
We should do call llvm-dwp and install dwp files when LLVM_USE_SPLIT_DWARF is on.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs