Skip to content

build: conditionally add Foundation dependency edge #783

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
May 28, 2025

Conversation

compnerd
Copy link
Collaborator

When building without -DFoundation_DIR=..., we should not wire up a dependency on Foundation and instead rely on autolinking and the driver to collude to resolve the linkage. Failure to do so will instill a rogue -lFoundation.lib when linking on Windows.

When building without `-DFoundation_DIR=...`, we should not wire up a
dependency on Foundation and instead rely on autolinking and the driver
to collude to resolve the linkage. Failure to do so will instill a rogue
`-lFoundation.lib` when linking on Windows.
@compnerd
Copy link
Collaborator Author

@swift-ci please test

@compnerd compnerd requested a review from etcwilde May 23, 2025 14:55
@compnerd compnerd changed the title build: conditionaly add Foundation dependency edge build: conditionally add Foundation dependency edge May 23, 2025
@compnerd compnerd requested review from natecook1000 and rauhul May 23, 2025 14:55
@natecook1000 natecook1000 merged commit 02526df into apple:main May 28, 2025
27 checks passed
natecook1000 pushed a commit that referenced this pull request May 29, 2025
When building without `-DFoundation_DIR=...`, we should not wire up a
dependency on Foundation and instead rely on autolinking and the driver
to collude to resolve the linkage. Failure to do so will instill a rogue
`-lFoundation.lib` when linking on Windows.
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