Skip to content

Commit 3006f75

Browse files
authored
Update build.sh to try and fix Testing and clean up the bundle more
1 parent 1bbe96b commit 3006f75

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

swift-ci/sdks/android/scripts/build.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ declare_package boringssl "boringssl" "OpenSSL AND ISC AND MIT" \
114114
# Parse command line arguments
115115
android_sdk_version=0.1
116116
sdk_name=
117-
archs=armv7,aarch64,x86_64
117+
archs=aarch64,armv7,x86_64
118118
android_api=28
119119
build_type=Release
120120
parallel_jobs=$(($(nproc --all) + 2))
@@ -449,16 +449,16 @@ for arch in $archs; do
449449
--skip-test-linux \
450450
--skip-test-xctest --skip-test-foundation \
451451
--build-swift-static-stdlib \
452-
--swift-install-components='clang-resource-dir-symlink;license;stdlib;sdk-overlay' \
452+
--swift-install-components='compiler;clang-resource-dir-symlink;license;stdlib;sdk-overlay' \
453453
--install-swift \
454454
--install-libdispatch \
455455
--install-foundation \
456456
--xctest --install-xctest \
457+
--swift-testing --install-swift-testing \
457458
--cross-compile-build-swift-tools=0 \
458459
--llvm-ninja-targets-for-cross-compile-hosts=help \
459460
--cross-compile-append-host-target-to-destdir=False
460461
# --extra-cmake-options='-DCMAKE_EXTRA_LINK_FLAGS="-Wl,-z,max-page-size=16384"'
461-
# --swift-testing --install-swift-testing \
462462
# need to remove symlink that gets created in the NDK to the previous arch's build
463463
# or else we get errors like:
464464
# error: could not find module '_Builtin_float' for target 'x86_64-unknown-linux-android'; found: aarch64-unknown-linux-android, at: /home/runner/work/_temp/swift-android-sdk/ndk/android-ndk-r27c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/lib/swift/android/_Builtin_float.swiftmodule
@@ -530,7 +530,8 @@ for arch in $archs; do
530530
fi
531531

532532
# need force rm in case linux is not present (when not running tests)
533-
rm -rf lib/swift{,_static}/{clang,linux}
533+
rm -rf lib/swift{,_static}/{FrameworkABIBaseline,_InternalSwiftScan,_InternalSwiftStaticMirror,clang,embedded,host,linux,migrator}
534+
rm -rf lib/lib*.so
534535
mv lib/swift lib/swift-$arch
535536
ln -s ../swift/clang lib/swift-$arch/clang
536537

0 commit comments

Comments
 (0)