-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[cmake] Use is_darwin_sdk over CMAKE_SYSTEM_NAME #5100
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
Conversation
@swift-ci please test |
Build failed |
The macOS failure looks legitimate -- reflection tests are failing because of a change in |
Checking CMAKE_SYSTEM_NAME to append Darwin-specific flags happens to work when cross-compiling from one Darwinian system to another -- like using a macOS host to build the standard library for iOS. It doesn't work, however, when cross-compiling from macOS to Android, for example. Instead of checking the host system name, check whether the SDK target is Darwinian.
b8edc52
to
47bd025
Compare
@swift-ci Please test |
Build failed |
No idea about this one. Did a full build and didn't reproduce locally. |
@swift-ci Please test |
Build failed |
Build failed |
@swift-ci Please clean test OS X platform |
Oh right, CI outage. My bad! :) |
@swift-ci Please test Linux platform |
Yay! CI is all green. @gottesmm, @jrose-apple, does this look good to go? |
LGTM. |
Awesome, thanks! |
Checking
CMAKE_SYSTEM_NAME
to append Darwin-specific flags happens to work when cross-compiling from one Darwinian system to another -- like using a macOS host to build the standard library for iOS. It doesn't work, however, when cross-compiling from macOS to Android, for example.Instead of checking the host system name, check whether the SDK target is Darwinian.
This pull request was split out of #4972, which addresses SR-1362.