From ef3e4fb70dc93d6fca2093690ad015fa0a609d9f Mon Sep 17 00:00:00 2001 From: Honza Dvorsky Date: Tue, 8 Sep 2026 13:05:21 +0200 Subject: [PATCH] Pin to the native build system to unblock us --- scripts/swift-build-with-android-sdk.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/swift-build-with-android-sdk.sh b/scripts/swift-build-with-android-sdk.sh index accf5a53f..ccf35c0d9 100755 --- a/scripts/swift-build-with-android-sdk.sh +++ b/scripts/swift-build-with-android-sdk.sh @@ -34,4 +34,7 @@ if [[ -z "$SWIFT_SDK" ]]; then fi log "Building using Swift SDK: $SWIFT_SDK (triple: $android_sdk_triple)" -swift build --swift-sdk "$SWIFT_SDK" --triple "$android_sdk_triple" --swift-sdks-path "$swift_sdk_directory" --static-swift-stdlib "${@}" +# Pin the native build system: SwiftPM now defaults to swiftbuild, whose Android +# support expects a locally installed NDK found via ANDROID_NDK_ROOT/ANDROID_NDK_HOME +# rather than the one the Swift SDK links into its sysroot. +swift build --build-system native --swift-sdk "$SWIFT_SDK" --triple "$android_sdk_triple" --swift-sdks-path "$swift_sdk_directory" --static-swift-stdlib "${@}"