-
Notifications
You must be signed in to change notification settings - Fork 273
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
propagate dSYM bundles discovered within dynamic xcframeworks #2625
base: master
Are you sure you want to change the base?
propagate dSYM bundles discovered within dynamic xcframeworks #2625
Conversation
fa84986
to
767820d
Compare
@@ -374,6 +400,9 @@ def _get_xcframework_library_with_xcframework_processor( | |||
|
|||
return struct( | |||
binary = binary, | |||
# TODO(asky) | |||
debug_info_binaries = [], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i don't actually think this can be implemented as-is, since the outputs are opaque
if ".framework/" not in file.short_path: | ||
continue |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
needed to add this to keep static frameworks from failing in bundle_paths.farthest_parent
(not sure if fail-by-default is the right call for that method)
@@ -180,32 +168,6 @@ def _framework_search_paths(header_imports): | |||
else: | |||
return [] | |||
|
|||
def _debug_info_binaries( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
moved to framework_import_support.bzl
d4a85d4
to
5aa55b5
Compare
Fixes #2512
This PR attempts to add automatic dSYM imports per target-triple for dynamic xcframeworks. It is a rough implementation with some appropriately sharp edges, due to my still-nascent familiarity with the codebase, but I've managed to prove it out at the day job. Hopefully this is acceptable!
Note: dSYMs for dynamic xcframeworks imported from outside the root module are not copied into bazel-out and their paths as viewed with cquery are under
external/
relative to the output base. This is consistent with howdsym_imports
are handled byapple_dynamic_framework_import
.