Skip to content

Comments

Use feature instead of cpp fragment for dSYM generation#26925

Closed
keith wants to merge 1 commit intomasterfrom
ks/use-feature-instead-of-cpp-fragment-for-dsym-generation
Closed

Use feature instead of cpp fragment for dSYM generation#26925
keith wants to merge 1 commit intomasterfrom
ks/use-feature-instead-of-cpp-fragment-for-dsym-generation

Conversation

@keith
Copy link
Member

@keith keith commented Sep 9, 2025

This was discussed in #25881
where we believed it was equivalent. This isn't equivalent if the
toolchain does not support dSYM generations but --apple_generate_dsym is
still passed (as is possible on Linux). In this case we let feature
configuration handle this instead, as this feature is requested when
--apple_generate_dsym is passed. In that case because of this mismatch
this directory will be created "successfully" but it will always be
empty (this would be a failure if it wasn't a tree artifact)

This was discussed in #25881
where we believed it was equivalent. This isn't equivalent if the
toolchain does not support dSYM generations but --apple_generate_dsym is
still passed (as is possible on Linux). In this case we let feature
configuration handle this instead, as this feature is requested when
--apple_generate_dsym is passed. In that case because of this mismatch
this directory will be created "successfully" but it will always be
empty (this would be a failure if it wasn't a tree artifact)
@github-actions github-actions bot added the awaiting-review PR is awaiting review from an assigned reviewer label Sep 9, 2025
@keith
Copy link
Member Author

keith commented Sep 9, 2025

cc @benjivos @googlewalt since this was discussed here #25881 (comment)

@keith
Copy link
Member Author

keith commented Sep 9, 2025

my specific use case is a build where i can cross compile some things to macOS from linux, in that case I always want to pass --apple_generate_dsym, but the target may or may not be macOS, so it's easier to differentiate from the toolchain feature which isn't supported for binaries targeting linux

@satyanandak satyanandak added the team-Rules-CPP Issues for C++ rules label Sep 9, 2025
@keith
Copy link
Member Author

keith commented Oct 17, 2025

@googlewalt friendly ping 🙏🏻

@googlewalt googlewalt self-assigned this Oct 21, 2025
@keith
Copy link
Member Author

keith commented Nov 19, 2025

@googlewalt can you help land this one?

@googlewalt googlewalt requested a review from comius November 19, 2025 03:38
@googlewalt
Copy link
Contributor

googlewalt commented Nov 19, 2025

@comius is there anyone on the bazel side who can help land this?

@keith
Copy link
Member Author

keith commented Nov 19, 2025

Ah hopefully @pzembrod can help

@googlewalt googlewalt requested a review from pzembrod November 19, 2025 10:56
@keith
Copy link
Member Author

keith commented Dec 18, 2025

@pzembrod ptal

@github-actions github-actions bot removed the awaiting-review PR is awaiting review from an assigned reviewer label Dec 23, 2025
fmeum pushed a commit to fmeum/bazel that referenced this pull request Jan 6, 2026
This was discussed in bazelbuild#25881
where we believed it was equivalent. This isn't equivalent if the
toolchain does not support dSYM generations but --apple_generate_dsym is
still passed (as is possible on Linux). In this case we let feature
configuration handle this instead, as this feature is requested when
--apple_generate_dsym is passed. In that case because of this mismatch
this directory will be created "successfully" but it will always be
empty (this would be a failure if it wasn't a tree artifact)

Closes bazelbuild#26925.

PiperOrigin-RevId: 848240203
Change-Id: I604bc97e44c195142b12222b73d7442a1115ccd1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

team-Rules-CPP Issues for C++ rules

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants