-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Set CMP0157 to OLD for Android #5180
Set CMP0157 to OLD for Android #5180
Conversation
There is no early swift-driver build for the Windows toolchain. As a result, swift-collections fails to build properly when CMP0157 is set to NEW due to object files not being generated. This sets CMP0157 to OLD when targetting Android until the early swift-driver is available on Windows.
Facing this issue as well. This sounds like a good compromise. Is it happening on other platforms too? Otherwise we might want to add |
It works fine when building for Windows, but the Android build does not take kindly to not having the early swift-driver. |
What I meant was: The issue doesn't reproduce when running Android build on Linux right? |
Ah sorry, I have no idea. I am assuming there is no early swift-driver on Linux either since that requires a static build. |
I am not that familiar with this CMake policy, which appears to enable using the new Is it that CMake sets
No, the linux CI builds and uses the early swift-driver, as you can see on any recent CI run (search for earlyswiftdriver), and you can always pass in a prebuilt linux toolchain that includes the new swift-driver to build this repo. My Android CI builds this repo just fine from a linux host using such an official prebuilt linux toolchain. Btw, what is up with @hyp, will he be back? |
When
Thanks, I did that.
He has gone to pursue a different field. He might pop up every once in a while, though :) |
@swift-ci please test |
OK, only reason I asked is because Tony and I were still pinging him on recent pulls, we'll stop doing that. 😉 |
The Windows build succeeded: https://ci-external.swift.org/job/swift-corelibs-foundation-PR-windows/618/ Any ideas why results were not reported? |
The bot checked out the correct commit 4af0f8c, but then it reported the result for the outdated commit:
a563ace did actually get accepted 🤷♂️ |
Let's try that again. @swift-ci please test Windows |
…olchain (#1009) There is no early swift-driver build for the Windows toolchain. As a result, swift-testing fails to build properly when CMP0157 is set to NEW due to object files not being generated. This sets CMP0157 to OLD when targeting Android with the Windows toolchain until the early swift-driver is available on Windows. This is analog to swiftlang/swift-corelibs-foundation#5180 ### Checklist: - [x] Code and documentation should follow the style of the [Style Guide](https://github.com/apple/swift-testing/blob/main/Documentation/StyleGuide.md). - [x] If public symbols are renamed or modified, DocC references should be updated.
There is no early swift-driver build for the Windows toolchain. As a result, swift-collections fails to build properly when CMP0157 is set to NEW due to object files not being generated. This sets CMP0157 to OLD when targetting Android until the early swift-driver is available on Windows. This is similar to swiftlang/swift-corelibs-foundation#5180
There is no early swift-driver build for the Windows toolchain. As a result, swift-collections fails to build properly when CMP0157 is set to NEW due to object files not being generated.
This sets CMP0157 to OLD when targetting Android until the early swift-driver is available on Windows.