Skip to content

Conversation

etcwilde
Copy link
Member

CMAKE_Swift_COMPILER_TARGET takes the full target triple, not the module triple. The module triple will be the same on platforms that don't use availability, but on platforms that do (or will) like Android, this will result in availability issues, like the one we are seeing on the Windows CI, error: 'getgrnam_r' is only available in Android 24 or newer.

Also removing the extra CMAKE_Swift_COMPILER_TARGET value passed to the volatile build. Build-CMakeProject is already computing that with the same value.

`CMAKE_Swift_COMPILER_TARGET` takes the full target triple, not the
module triple. This probably doesn't affect Windows, but will/does
affect availability on Android resulting in Foundation failing to build
due to `error: 'getgrnam_r' is only available in Android 24 or newer`.
`CMAKE_Swift_COMPILER_TARGET` is set up by `Build-CMakeProject`. We
shouldn't need to pass it into the volatile build explicitly.
@etcwilde etcwilde requested a review from compnerd as a code owner October 20, 2025 17:12
@etcwilde
Copy link
Member Author

@swift-ci please test

@etcwilde
Copy link
Member Author

@swift-ci please build Windows Toolchain

@etcwilde
Copy link
Member Author

@swift-ci please build toolchain Windows platform

@compnerd
Copy link
Member

@swift-ci please build toolchain Windows ARM64 platform

Copy link
Member

@compnerd compnerd left a comment

Choose a reason for hiding this comment

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

This seems reasonable to do if it passes CI.

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