Skip to content

build.ps1: Update to NDK 28c, in preparation for the upcoming LTS NDK 30#87774

Merged
finagolfin merged 1 commit intoswiftlang:mainfrom
finagolfin:win-ndk
Mar 12, 2026
Merged

build.ps1: Update to NDK 28c, in preparation for the upcoming LTS NDK 30#87774
finagolfin merged 1 commit intoswiftlang:mainfrom
finagolfin:win-ndk

Conversation

@finagolfin
Copy link
Member

Also, update the prior option to the latest NDK 27d.

This poses no problem for any PR CI, which do not build for Android, but only the trunk snapshot CI, which we need to start getting ready for the upcoming LTS NDK release.

@finagolfin finagolfin requested a review from compnerd as a code owner March 10, 2026 19:23
utils/build.ps1 Outdated
@@ -475,11 +475,16 @@ $KnownNDKs = @{
Copy link
Member Author

Choose a reason for hiding this comment

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

I can remove this old NDK too, if wanted.

Copy link
Member

Choose a reason for hiding this comment

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

Yeah, lets remove r26b, we have been on r27c for a while.

Copy link
Member Author

Choose a reason for hiding this comment

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

Done

@finagolfin
Copy link
Member Author

This will break 4-5 tests when running the compiler validation suite for Android on the Windows x86_64 trunk snapshot CI, but we ignore those Android results and hundreds more are failing anyway atm.

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.

We need to ensure that this actually builds on swift.org CI and you've tested it locally?

utils/build.ps1 Outdated
@@ -475,11 +475,16 @@ $KnownNDKs = @{
Copy link
Member

Choose a reason for hiding this comment

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

Yeah, lets remove r26b, we have been on r27c for a while.

Also, update the prior option to the latest NDK 27d and remove 26b.
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.

As long as this passes on CI and is in sync with the other Android builds, should be fine.

@finagolfin
Copy link
Member Author

finagolfin commented Mar 11, 2026

We need to ensure that this actually builds on swift.org CI and you've tested it locally?

No way to test this before merging on Windows CI, but I tested it locally on linux and submitted it for the official Android trunk CI that runs on linux also, swiftlang/swift-docker#528, where you can see the five tests that fail.

Once this is in, I will follow up with any fixes needed if it breaks the one post-merge CI that builds and tests the Android SDKs on Windows, which seems to have broken with some Foundationstdlib issue lately, but unlikely this pull will since this NDK 28c update always worked well on linux.

@finagolfin
Copy link
Member Author

@swift-ci smoke test

@finagolfin
Copy link
Member Author

@Steelskin, is this something you can test on your CI?

@finagolfin
Copy link
Member Author

Hmm, strange lldb test failures on linux and mac, obviously unrelated to this Windows-only pull, flakes?

@swift-ci smoke test linux

@finagolfin
Copy link
Member Author

Oh nice, Windows trunk snapshot toolchain CI passed again.

@swift-ci smoke test macos

@finagolfin
Copy link
Member Author

swiftlang/swift-driver#2092

@swift-ci smoke test linux

@finagolfin
Copy link
Member Author

swiftlang/swift-driver#2092

@swift-ci smoke test macos

@finagolfin
Copy link
Member Author

swiftlang/swift-driver#2101

@swift-ci smoke test linux

@finagolfin
Copy link
Member Author

swiftlang/swift-driver#2101

@swift-ci smoke test macOS

@finagolfin finagolfin merged commit fdc4218 into swiftlang:main Mar 12, 2026
3 checks passed
@finagolfin finagolfin deleted the win-ndk branch March 12, 2026 12:00
@finagolfin
Copy link
Member Author

The first Windows trunk snapshot CI run with this NDK 28 showed no build errors: I will try NDK 29 next, once we get that wchar modularization issue fixed, #85365.

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