File tree Expand file tree Collapse file tree 4 files changed +10
-43
lines changed Expand file tree Collapse file tree 4 files changed +10
-43
lines changed Original file line number Diff line number Diff line change 33patches_dir=$( dirname $( realpath -- " ${BASH_SOURCE[0]} " ) )
44cd ${1}
55
6- case " ${BUILD_SCHEME} " in
7- swift-* -branch)
8- git apply -v -C1 ${patches_dir} /swift-android-devel.patch
9- git apply -v -C1 ${patches_dir} /swift-android.patch
10- ;;
11- development)
12- git apply -v -C1 ${patches_dir} /swift-android.patch
13- git apply -v -C1 ${patches_dir} /swift-android-trunk.patch
14- ;;
15- * )
16- echo " $0 : invalid BUILD_SCHEME=${BUILD_SCHEME} "
17- exit 1
18- ;;
19- esac
6+ if [[ " ${BUILD_SCHEME} " == " swift-6.2-branch" ]]; then
7+ git apply -v -C1 ${patches_dir} /swift-android-devel.patch
8+ else
9+ # This `git grep` invocation in a trunk test fails in our Docker for some
10+ # reason, so just turn it into a plain `grep` again.
11+ perl -pi -e ' s:"git",:#:' swift/test/Misc/verify-swift-feature-testing.test-sh
12+ fi
13+
14+ # Work around swiftlang/swift-driver#1822 for now
15+ perl -pi -g -we " s#(call rm ... \" .\{LIBDISPATCH_BUILD_DIR\}\" \n(\s+)fi\n)#\1\2ln -sf \"\\\$ {SWIFT_BUILD_PATH}/lib/swift\" \"\\\$ {ANDROID_NDK}/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/lib\" #" swift/utils/build-script-impl
2016
2117# disable backtrace() for Android (needs either API33+ or libandroid-execinfo, or to manually add in backtrace backport)
2218perl -pi -e ' s;os\(Android\);os\(AndroidDISABLED\);g' swift-testing/Sources/Testing/SourceAttribution/Backtrace.swift
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -235,11 +235,6 @@ ndk_home=$ndk_home_tmp
235235ndk_installation=$ndk_home /toolchains/llvm/prebuilt/$HOST
236236ndk_clang_version=18
237237
238- # ANDROID_NDK env needed by the swift-android.patch for:
239- # call ln -sf "${SWIFT_BUILD_PATH}/lib/swift" "${ANDROID_NDK}/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/lib"
240- export ANDROID_NDK_HOME=$ndk_home
241- export ANDROID_NDK=$ndk_home
242-
243238echo " Swift found at ${swift_dir} "
244239if [[ ! -z " ${host_toolchain} " ]]; then
245240 echo " Host toolchain found at ${host_toolchain} "
You can’t perform that action at this time.
0 commit comments