-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Skip adding alias targets when they don't exist #36782
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
Skip adding alias targets when they don't exist #36782
Conversation
The CMake uses the concept of a "primary variant" which isn't necessarily aligned with either the host or target. In some cases, like cross-compiling an iOS compiler toolchain for macosx-arm64, the expected "primary variant" target will be missing and so CMake will fail. We can skip adding the alias since build-script will call the more specific target anyway.
@swift-ci please smoke test |
@swift-ci please smoke test |
I'm also rebuilding locally against a preset that I'm sure exercises cross-compilation |
@swift-ci please smoke test macOS Platform |
1 similar comment
@swift-ci please smoke test macOS Platform |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe that this should be safe.
Adjust the condition and message to skip the primary variant alias in a way that's more clear and more directly matches the explanation in the comments. Co-authored-by: Eric Miotto <[email protected]>
6f4c29c
to
2d3d515
Compare
Just squashing the two review fixup commits and improving their commit message. |
@swift-ci please smoke test and merge |
1 similar comment
@swift-ci please smoke test and merge |
@swift-ci please smoke test macOS Platform and merge |
@swift-ci please smoke test macOS Platform |
1 similar comment
@swift-ci please smoke test macOS Platform |
The CMake uses the concept of a "primary variant" which isn't necessarily aligned with either the host or target. In some cases, like cross-compiling an iOS compiler toolchain for
macosx-arm64
, the expected "primary variant" target will be missing and so CMake will fail. We can skip adding the alias sincebuild-script
will call the more specific target anyway.