Skip to content

Avoiding linking CF from outside of Foundation #5003

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
Jul 11, 2024

Conversation

jmschonfeld
Copy link
Contributor

CoreFoundation expects to only be linked from Foundation itself. This resulted in linker failures where CoreFoundation failed to find certain symbols provided by Foundation when it was statically linked into FoundationNetworking on Windows. This removes CoreFoundation from the linked libraries list of FoundationNetworking/FoundationXML, but does add CoreFoundation's include paths to those targets so that it can use headers that have macros defined.

@jmschonfeld jmschonfeld merged commit 082b0dc into swiftlang:package Jul 11, 2024
@jmschonfeld jmschonfeld deleted the fix-cf-linking branch July 11, 2024 23:12
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