File tree Expand file tree Collapse file tree 1 file changed +4
-15
lines changed
swift-ci/sdks/android/scripts Expand file tree Collapse file tree 1 file changed +4
-15
lines changed Original file line number Diff line number Diff line change @@ -210,6 +210,10 @@ HOST=linux-x86_64
210
210
# HOST=$(uname -s -m | tr '[:upper:]' '[:lower:]' | tr ' ' '-')
211
211
ndk_installation=$ndk_home /toolchains/llvm/prebuilt/$HOST
212
212
213
+ # ANDROID_NDK env needed by the swift-android.patch for:
214
+ # call ln -sf "${SWIFT_BUILD_PATH}/lib/swift" "${ANDROID_NDK}/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/lib"
215
+ export ANDROID_NDK=$ndk_home
216
+
213
217
echo " Swift found at ${swift_dir} "
214
218
echo " Host toolchain found at ${host_toolchain} "
215
219
${host_toolchain} /bin/swift --version
492
496
493
497
ndk_sysroot=${ndk_prebuilt}/linux-x86_64/sysroot
494
498
495
- ln -sf "${host_toolchain}/lib/swift" "${ndk_sysroot}/usr/lib"
496
-
497
- # ensure that the expected compiler resource is found
498
- ls -la s/usr/local/ndk/android-ndk-r27c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/lib/swift/android/x86_64/swiftrt.o
499
-
500
- ## need to fixup swiftrt.o in ANDROID_NDK_HOME
501
- #host_swift_dir=$(dirname $(dirname $(which swift)))
502
- #for folder in swift swift_static; do
503
- # for swiftrt in ${swift_resources}/usr/lib/${folder}-*/android/*/swiftrt.o; do
504
- # arch=$(basename $(dirname ${swiftrt}))
505
- # mkdir -p ${ndk_sysroot}/usr/lib/${folder}/android/${arch}
506
- # cp -av ${swiftrt} ${ndk_sysroot}/usr/lib/${folder}/android/${arch}/
507
- # done
508
- #done
509
-
510
499
#Pkg.Revision = 27.0.12077973
511
500
#Pkg.Revision = 28.1.13356709
512
501
ndk_version=$(grep '^Pkg.Revision = ' "${ANDROID_NDK_HOME}/source.properties" | cut -f3- -d' ' | cut -f 1 -d '.')
You can’t perform that action at this time.
0 commit comments