Skip to content

[CMake] Autolink static libraries for foundation_static build #689

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

Merged
merged 1 commit into from
Jun 18, 2024

Conversation

jmschonfeld
Copy link
Contributor

For private dependencies, the compiler needs to know to link the extra static libraries when building against the static stdlib. These extra flags ensure that when linking against libFoundationEssentials.a that the compiler also links lib_CShims.a and lib_FoundationCollections.a and that when linking against libFoundationInternationalization.a that the compiler also links lib_CShims.a and lib_FoundatonICU.a

@jmschonfeld jmschonfeld merged commit 544aa64 into swiftlang:main Jun 18, 2024
@jmschonfeld jmschonfeld deleted the cmake/autolink-static-libs branch June 18, 2024 22:59
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