-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Revert "[android] Update to NDK 23" #39791
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 smoke test |
How did this affect Windows? Everything in this patch is scoped to Android. |
https://ci-external.swift.org/job/oss-swift-windows-x86_64-vs2019/6846/
|
Given that the dispatch changes still need some alteration (I agree that dispatch should not be including bits/stdatomic.h), I think its better to revert than to fix. |
OK, but that line passed fine on both the Linux and Mac CIs, and I guess the Windows CI was not run by default for the pull this reverts. What version of CMake is that that doesn't support that common usage? |
Given that it's just showing the two parameters to the |
Oh yeah, that must be it. I assumed A simple way to fix this would be for you to set |
What do you suggest instead, given that I noted that is a workaround for |
As was commented on in the lib dispatch PR , using things in |
Use of |
As I responded there in August, that didn't work either, because it doesn't change the fundamental issue that you're invoking C++ declarations inside an extern C block. The real problem is in |
There's a horrible thing that comes to mind - and I'd prefer to avoid it if at all possible - we could wrap the header via |
@swift-ci please test Windows platform |
I don't think that would work either, took the discussion there. |
Getting back to this pull, what about the fix I mentioned earlier: "A simple way to fix this would be for you to set SWIFT_HOST_VARIANT_SDK explicitly to Windows on your CI instead." |
That doesn't work for Windows - the split is important for the split build that Windows does. See the above point about fixing this would be possible but given that the dispatch changes aren't ready yet, it seems better to just revert for the time being. |
Not sure what you mean,
Why would that be relevant? Merging that would fix the Android CI, but reverting this would leave the Android CI broken anyway, because of the recent LLVM rebranch. |
I agree with you that the current state is less than desirable. There is a fairly simple mapping: Given that the CI has been broken for >12 hours now, I'd like to merge this for the time being. We can revert the revert and work on repairing the android builds subsequently. This is currently preventing further tests, including those related to some of the deferred rebranch issues. build-script doesn't work for windows - it assumes bash, which is not reasonable. The equivalent is build-windows-toolchain.bat which only configures paths outside of the experimental features (the rest is via cmake caches). |
I don't think that is the way it works now- for example, when the host tools are cross-compiled to Apple Silicon,
Alright, understood, please go ahead and revert.
That's not what I suggested. You are currently passing a lot of variables on the Windows CI:
I'm simply suggesting you add this one to that list. Anyway, please go ahead and revert, we can hash this out later. |
@compnerd: sorry for the breakage. It seems that "test and merge" didn't kick off the Windows tests (not even as non-blocking). I would try not to use it in the future. |
Reverts #39045
This broke the Windows CI due to incorrect testing.