Open Quuxplusone opened 4 years ago
Ran into this when trying to enable -gsplit-dwarf in chromium. There are also
issues for incremental builds where stale .dwo files can exist, which I suspect
might be the same root cause. Some details here:
https://bugs.chromium.org/p/chromium/issues/detail?id=1263177
clang++ -O3 -flto=thin -gsplit-dwarf test.cpp -o test -fuse-ld=lld -Wl,--thinlto-cache-dir=/tmp/testltocache
or
clang++ -O3 -flto=thin -gsplit-dwarf test.cpp -o test -Wl,-plugin-opt,cache-dir=/tmp/testltocache
The first time it runs it does produce a test_dwo/1.dwo file but after that it fetches the object file from the cache and the .dwo is lost.