-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support dSYM generation for cc_binary / cc_common.link #16893
Comments
I have the same issue I think. The bazel plugin for clion uses a compile line that looks like this:
This generates both a
and other variants and have yet to produce a dSYM file. |
I just ran into this today. Adding to what @bensternlieb did, I also tried adding the more modern flags:
@keith Can you suggest a workaround? Is this what macos_command_line_application is for? I started down this rabbithole because I wanted to use I think the community would appreciate a bit more detail in the common info on how this all fits together (not the most exciting documentation to write, I know. And I'm happy to contribute as it's sorta part of my day job). |
as a workaround for any cc_binary you can manually create the dsym after your build with |
Ha, you're right. I ran this yesterday without For the record, @keith's workaround works fine even for optimized builds. I used |
@keith Additional notes for the record. I've confirmed that
|
Description of the feature request:
Currently on macOS if you'd like to generate dSYM you have to go through some objc provider for the final link. Technically any cc_binary could have a dsym, and for other rules that don't particularly depend on objc, like swift_binary, it would be ideal if they could also produce a dsym. It appears to me that even if we made the required crosstool changes setting the variables for dsyms is gated behind various objc variables
bazel/src/main/java/com/google/devtools/build/lib/rules/objc/ObjcVariablesExtension.java
Lines 232 to 234 in 1620b6e
I think in general this is known as part of moving to CcInfo for linking, but I couldn't find a tracking issue
What underlying problem are you trying to solve with this feature?
No response
Which operating system are you running Bazel on?
macOS
What is the output of
bazel info release
?release 6.0.0rc3
If
bazel info release
returnsdevelopment version
or(@non-git)
, tell us how you built Bazel.No response
What's the output of
git remote get-url origin; git rev-parse master; git rev-parse HEAD
?No response
Have you found anything relevant by searching the web?
No response
Any other information, logs, or outputs that you want to share?
No response
The text was updated successfully, but these errors were encountered: