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

[Build] Use SWIFT_SYSTEM_NAME rather than just lowercasing. #421

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

al45tair
Copy link

Lowercasing CMAKE_SYSTEM_NAME to find the name Swift uses for a platform is not guaranteed to work. Instead, use the SWIFT_SYSTEM_NAME variable, which lets us override the name when building the Static SDK for Linux.

Fixes #420.

Lowercasing `CMAKE_SYSTEM_NAME` to find the name Swift uses for a platform
is not guaranteed to work.  Instead, use the `SWIFT_SYSTEM_NAME` variable,
which lets us override the name when building the Static SDK for Linux.

Fixes apple#420.
@al45tair
Copy link
Author

@swift-ci Please test

Copy link
Member

@lorentey lorentey left a comment

Choose a reason for hiding this comment

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

This looks good, thanks!

We need PR to land on the release/1.1 branch, not main. Can you please retarget it?

@lorentey lorentey added this to the 1.1.4 milestone Sep 20, 2024
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.

Missing required module '_FoundationCollections' when building with the Static Linux SDK
2 participants