Skip to content

Commit ead9ba9

Browse files
committed
Apply patch from swiftlang/swift#84061 for 6.2.0 Android SDK release
1 parent bd87b1a commit ead9ba9

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

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

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -439,6 +439,12 @@ for arch in $archs; do
439439
# use an out-of-tree build folder
440440
export SWIFT_BUILD_ROOT=${build_dir}/swift-project
441441

442+
pushd swift
443+
# apply the patch for the 6.2.0 cherry-pick of https://github.com/swiftlang/swift/pull/81596
444+
curl -fsSL https://github.com/swiftlang/swift/pull/84061.patch > 84061.patch
445+
git apply 84061.patch
446+
popd
447+
442448
./swift/utils/build-script \
443449
$build_type_flag \
444450
--reconfigure \
@@ -468,10 +474,10 @@ for arch in $archs; do
468474
--xctest --install-xctest \
469475
--swift-testing --install-swift-testing \
470476
--swift-testing-macros --install-swift-testing-macros \
471-
--cross-compile-build-swift-tools=false \
477+
--cross-compile-build-swift-tools=False \
472478
--libdispatch-cmake-options=-DCMAKE_SHARED_LINKER_FLAGS= \
473479
--foundation-cmake-options=-DCMAKE_SHARED_LINKER_FLAGS= \
474-
--cross-compile-append-host-target-to-destdir=false
480+
--cross-compile-append-host-target-to-destdir=False
475481
# --extra-cmake-options='-DCMAKE_EXTRA_LINK_FLAGS="-Wl,-z,max-page-size=16384"'
476482
# need to remove symlink that gets created in the NDK to the previous arch's build
477483
# or else we get errors like:

0 commit comments

Comments
 (0)