cc_binary: support .dSYM generation#402
Conversation
keith
left a comment
There was a problem hiding this comment.
Can you add a test similar to
apple_support/test/linking_tests.bzl
Lines 217 to 226 in af8d93a
nit: please run pre-commit to format the code with clang-format
I think the test failure here is related to this change, not 100% sure
2c041da to
b800f37
Compare
|
i think this looks good but we need to wait for the bazel change to make sure this is the right path |
|
Any updates since the Bazel PR has been merged? |
|
@keith should we wait until bazel 8.3 is released? (at least I could enable the test then) |
|
i think we can test this now, want to rebase? |
b800f37 to
6673725
Compare
|
@keith I rebased, but looks like it fails on bazel 7 build. How should I exclude the test from that configuration? |
|
not right now but you can mess with apple_support/.bazelci/presubmit.yml Line 17 in 7009b77 |
6f07490 to
914cf2b
Compare
|
@keith I was only able to manually add the new test target to the bazel 8+ tasks in |
|
hrm are we sure that doesn't actually break building cc_binarys with 7.x for real? that error makes it sound like if we were hitting the new codepath in the crosstool that it would fail because really you need |
Add support for generating a .dSYM file if this is requested using `--apple_generate_dsym`. This change contains the following patches: * Add `DSYM_HINT` flags to be picked up by `wrapped_clang` to generate .dSYM bundles on request. * In `wrapped_clang.cc` make sure the linked binary is stripped after generating the .dSYM bundle first to make the .dSYM bundle contain useful information. Adopts recent changes in bazel to support .dSYM files (as part of fixing bazelbuild/bazel#16893).
914cf2b to
7c8e04f
Compare
I managed to remove the manual tag, and only exclude it as a test target for 7.x. I did this by only using |
|
Hello everyone. It look like this change introduced a regression at least in test bundles, see #465. |
Add support for generating a .dSYM file if this is requested using
--apple_generate_dsym. This change contains the following patches:DSYM_HINTflags to be picked up bywrapped_clangto generate .dSYM bundles on request.wrapped_clang.ccmake sure the linked binary is stripped after generating the .dSYM bundle first to make the .dSYM bundle contain useful information.Adopts changes in bazel to support .dSYM files (as part of fixing bazelbuild/bazel#16893).