Skip to content

Commit e937f54

Browse files
committed
Android SDK build
1 parent a137f03 commit e937f54

File tree

2 files changed

+4
-17
lines changed

2 files changed

+4
-17
lines changed

swift-ci/sdks/android/build

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,12 @@
33

44
# the architecture(s) to build; on GH Actions we build everything
55
if [[ -z "${CI}" ]]; then
6+
#TARGET_ARCHS=${TARGET_ARCHS:-x86_64,aarch64}
67
TARGET_ARCHS=${TARGET_ARCHS:-aarch64}
78
else
89
#TARGET_ARCHS=${TARGET_ARCHS:-aarch64,armv7,x86_64,x86}
9-
TARGET_ARCHS=${TARGET_ARCHS:-aarch64,x86_64}
10+
#TARGET_ARCHS=${TARGET_ARCHS:-aarch64,x86_64}
11+
TARGET_ARCHS=${TARGET_ARCHS:-x86_64,aarch64}
1012
fi
1113

1214
ANDROID_NDK_VERSION=android-ndk-r27c

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

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ android_sdk_version=0.1
102102
sdk_name=
103103
archs=aarch64,armv7,x86_64,x86
104104
android_api=28
105-
build_type=RelWithDebInfo
105+
build_type=Release
106106
parallel_jobs=$(($(nproc --all) + 2))
107107
source_dir=
108108
ndk_home=${ANDROID_NDK}
@@ -359,21 +359,6 @@ for arch in $archs; do
359359
--xctest --install-xctest \
360360
--swift-testing --install-swift-testing \
361361
--cross-compile-append-host-target-to-destdir=False
362-
363-
#--llbuild --install-llbuild \
364-
#--swiftpm \
365-
#--sourcekit-lsp \
366-
367-
#--extra-cmake-options="-DCMAKE_HAVE_LIBC_PTHREAD=YES" \
368-
#--extra-cmake-options="-DTHREADS_PREFER_PTHREAD_FLAG=OFF" \
369-
#--extra-cmake-options="-DCMAKE_THREAD_PREFER_PTHREAD=OFF" \
370-
#--extra-cmake-options="-DCMAKE_HAVE_LIBC_PTHREAD=ON" \
371-
372-
# THREADS_PREFER_PTHREAD_FLAG=OFF is needed to prevent adding the -pthread flag, which fails on Android
373-
#swiftc=$(find ${build_dir}/swift -name 'swiftc' | grep -v bootstrapping)
374-
#lld=$(find ${build_dir}/swift -name 'ld.lld')
375-
#echo "built: ${swiftc}"
376-
377362
quiet_popd
378363
done
379364

0 commit comments

Comments
 (0)