Skip to content
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

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

Merged
merged 1 commit into from Jan 14, 2022

Conversation

dnkoutso
Copy link
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

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
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.

None yet

2 participants