per_object_debug_info does not work with Clang 12 #14038
Labels
P3
We're not considering working on this, but happy to review a PR. (No assignee)
team-Rules-CPP
Issues for C++ rules
type: bug
Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
Install clang 12 and set CC=clang CXX=clang++
In https://github.com/bazelbuild/examples/tree/main/cpp-tutorial/stage3 run:
bazel build --fission=yes --features=per_object_debug_info //main:hello-world.dwp
Then the output is:
What operating system are you running Bazel on?
Ubuntu 18.04
What's the output of
bazel info release
?release 4.2.1
Have you found anything relevant by searching the web?
Clang 12 release notes says:
-gsplit-dwarf
no longer implies-g2
.Adding
--copt=-g2
can make it work, but bazel should add it with toolchain detection. And it increases binary size when fission is not used.The text was updated successfully, but these errors were encountered: