Skip to content

Cherry-pick batch 1: linking refactoring + dSYM foundation#2905

Closed
luispadron wants to merge 12 commits intomainfrom
luis/batch-1-linking-dsym-foundation
Closed

Cherry-pick batch 1: linking refactoring + dSYM foundation#2905
luispadron wants to merge 12 commits intomainfrom
luis/batch-1-linking-dsym-foundation

Conversation

@luispadron
Copy link
Copy Markdown
Contributor

@luispadron luispadron commented Mar 27, 2026

Batches some commits from: #2861:

Upstream Message
0654124 Add platform attributes to the deprecated "apple_binary"
2507186 Refactor the linking logic to named args, consolidate and reuse variables
f1ed76b Start wiring up build settings for crosstool dSYM bundles into rules
28d227a Remove bin_root_path reference from dynamic framework provider partial
c19c91b Unify unstripped binary outputs via fragment_support and outputs
N/A Sync debug_symbols.bzl with upstream
7a0ef14 Handle "bundle" outputs from crosstool via debug symbols partial
b27541a Update outputs.dsyms(...) for new dsymutil bundle outputs + tests
N/A Round out testing support for dsymutil generated dSYMs
N/A fix: add missing bazel_features import to compilation_support.bzl

nglevin and others added 6 commits March 27, 2026 16:34
… to work with the new platform-based resolution that has been added to the shared Apple linker logic.

Cherry-pick: 0654124
…s to a method are greater than one. Consolidate and reuse variables where they make sense.

Cherry-pick: 2507186
…rtial along with dead code that was present from use of the vestigial AppleDynamicFrameworkInfo fields.

Cherry-pick: 28d227a
…puts and the anticipated base name via use of "fragment_support" and "outputs", shared through compilation_support and linking_support. This will be used to reference the unstripped binary that is found in the generated dSYM bundles.

Cherry-pick: c19c91b
@luispadron luispadron changed the title Cherry-pick batch 1: linking refactoring + dSYM foundation (9 commits) Cherry-pick batch 1: linking refactoring + dSYM foundation Mar 27, 2026
@luispadron luispadron marked this pull request as draft March 27, 2026 20:37
@luispadron luispadron force-pushed the luis/batch-1-linking-dsym-foundation branch from 114ee4e to f80deb8 Compare March 27, 2026 20:42
@luispadron luispadron marked this pull request as ready for review March 27, 2026 20:46
@luispadron luispadron force-pushed the luis/batch-1-linking-dsym-foundation branch from 63f463c to eb171a5 Compare March 27, 2026 20:59
nglevin and others added 4 commits March 27, 2026 17:38
…mbols partial.

Tests for other platforms and targets besides ios_application will arrive in a following commit.

NOTE: includes manual addition of `dsym_variant_flag` since its not public in the upstream code

Cherry-pick: 7a0ef14
…e outputs.

Add tests for macos_application and macos_command_line_application.
Use build_setting_labels flags to reference dsym_variant_flag in test rules when possible.

Cherry-pick: b27541a
…ple starlark tests.

PiperOrigin-RevId: 752690208
The bazel_features field objc_fragment_has_builtin_objc_strip_action
doesn't exist in released versions. Use hasattr on the fragment directly.
@luispadron luispadron force-pushed the luis/batch-1-linking-dsym-foundation branch from eb171a5 to eb4029d Compare March 27, 2026 21:38
debug_symbols_partial doesn't accept executable_name - it was passed
from a later cherry-pick that adds it to the partial signature.
@luispadron luispadron force-pushed the luis/batch-1-linking-dsym-foundation branch from eb4029d to a900529 Compare March 27, 2026 21:44
@luispadron
Copy link
Copy Markdown
Contributor Author

hmm gonna be harder than i thought, lots of broken tests etc

@luispadron luispadron closed this Mar 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants