Skip to content

Fix setting LD_RUNTIME_SEARCH_PATHS for aggregate targets that include dynamic xcframeworks.#11158

Merged
dnkoutso merged 1 commit intomasterfrom
fix_other_ld_runtime_paths
Jan 14, 2022
Merged

Fix setting LD_RUNTIME_SEARCH_PATHS for aggregate targets that include dynamic xcframeworks.#11158
dnkoutso merged 1 commit intomasterfrom
fix_other_ld_runtime_paths

Conversation

@dnkoutso
Copy link
Copy Markdown
Contributor

If an app (and its aggregate target) only consume pre-built dynamic xcframeworks (xcframeworks with slices that are dynamically linked) then we never set the LD_RUNTIME_SEARCH_PATHS because we only do it if any of our dependencies are dynamic or whether vendored frameworks are dynamic.

This PR fixes this.

@dnkoutso dnkoutso added this to the 1.12.0 milestone Jan 14, 2022
@dnkoutso dnkoutso requested review from amorde and paulb777 January 14, 2022 21:05
@dnkoutso dnkoutso force-pushed the fix_other_ld_runtime_paths branch from 071be88 to bfc6506 Compare January 14, 2022 21:06
@dnkoutso dnkoutso force-pushed the fix_other_ld_runtime_paths branch from bfc6506 to 58cc35d Compare January 14, 2022 21:06

it 'includes default runpath search path list when linking vendored dynamic xcframework' do
@target.stubs(:build_type => BuildType.dynamic_framework)
@generator.generate.to_hash['LD_RUNPATH_SEARCH_PATHS'].should == "$(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks'"
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

verified this fails without my change.

@dnkoutso dnkoutso merged commit 6896aa9 into master Jan 14, 2022
@dnkoutso dnkoutso deleted the fix_other_ld_runtime_paths branch January 14, 2022 21:26
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