Pin to the native build system to unblock us

This commit is contained in:
Honza Dvorsky committed 2026-09-08 13:05:21 +02:00
1 parent 702770ae94
commit ef3e4fb70d
1 file changed
+4 -1
+4 -1
View File
@@ -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 "${@}"