File tree Expand file tree Collapse file tree 2 files changed +25
-1
lines changed Expand file tree Collapse file tree 2 files changed +25
-1
lines changed Original file line number Diff line number Diff line change @@ -125,12 +125,14 @@ jobs:
125
125
ANDROID_ARCH=aarch64 BUILD_SWIFT_PM=1 ${TOOLCHAIN}/bin/swift get-packages-and-swift-source.swift
126
126
127
127
git apply -C1 swift-android.patch swift-android-ci.patch
128
+ BUILD_FLAG="--build-swift-tools=0"
128
129
if ${{ matrix.version == 'release' }}; then
129
130
perl -pi -e 's%r26%ndk/27%' swift/stdlib/cmake/modules/AddSwiftStdlib.cmake
130
131
LSP_BUILD="--sourcekit-lsp"
131
132
git apply swift-android-ci-release.patch swift-android-testing-release.patch
132
133
else
133
134
if ${{ matrix.version == 'trunk' }}; then
135
+ BUILD_FLAG="--cross-compile-build-swift-tools=0"
134
136
git apply swift-android-trunk-libdispatch.patch
135
137
else
136
138
git apply swift-android-devel.patch
@@ -164,7 +166,7 @@ jobs:
164
166
cp $SYSROOT/usr/include/execinfo.h ${SDK_NAME}/usr/include
165
167
perl -pi -e 's%33%24%' ${SDK_NAME}/usr/include/execinfo.h
166
168
167
- ./swift/utils/build-script -RA --skip-build-cmark --build-llvm=0 --android --android-ndk $ANDROID_NDK_HOME --android-arch $arch --android-api-level $ANDROID_API_LEVEL --build-swift-tools=0 -- native-swift-tools-path=${TOOLCHAIN}/bin --native-clang-tools-path=${TOOLCHAIN}/bin --cross-compile-hosts=android-$arch --cross-compile-deps-path=$SDK --skip-local-build --build-swift-static-stdlib --xctest --install-swift --install-libdispatch --install-foundation --install-xctest --install-destdir=$SDK --swift-install-components='compiler;clang-resource-dir-symlink;license;stdlib;sdk-overlay' --cross-compile-append-host-target-to-destdir=False -b --install-llbuild --swift-testing --install-swift-testing -p $LSP_BUILD
169
+ ./swift/utils/build-script -RA --skip-build-cmark --build-llvm=0 --android --android-ndk $ANDROID_NDK_HOME --android-arch $arch --android-api-level $ANDROID_API_LEVEL --native-swift-tools-path=${TOOLCHAIN}/bin --native-clang-tools-path=${TOOLCHAIN}/bin --cross-compile-hosts=android-$arch --cross-compile-deps-path=$SDK --skip-local-build --build-swift-static-stdlib --xctest --install-swift --install-libdispatch --install-foundation --install-xctest --install-destdir=$SDK --swift-install-components='compiler;clang-resource-dir-symlink;license;stdlib;sdk-overlay' --cross-compile-append-host-target-to-destdir=False -b --install-llbuild --swift-testing --install-swift-testing -p $BUILD_FLAG $LSP_BUILD
168
170
169
171
rm $ANDROID_NDK_HOME/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/lib/swift
170
172
Original file line number Diff line number Diff line change
1
+ diff --git a/swift/utils/build-script-impl b/swift/utils/build-script-impl
2
+ index 890fc5e1419..a9bdd7f8842 100755
3
+ --- a/swift/utils/build-script-impl
4
+ +++ b/swift/utils/build-script-impl
5
+ @@ -2331,7 +2331,7 @@ for host in "${ALL_HOSTS[@]}"; do
6
+ continue
7
+ fi
8
+
9
+ - if [[ "${BUILD_SWIFT_TOOLS}" == "0" ]]; then
10
+ + if [[ "${CROSS_COMPILE_BUILD_SWIFT_TOOLS}" == "0" ]]; then
11
+ echo "Skipping building Foundation Macros for ${host}, because the host tools are not being built"
12
+ continue
13
+ fi
14
+ @@ -2920,7 +2920,7 @@ for host in "${ALL_HOSTS[@]}"; do
15
+ continue
16
+ fi
17
+
18
+ - if [[ "${BUILD_SWIFT_TOOLS}" == "0" && "${product}" == "foundation_macros" ]]; then
19
+ + if [[ "${CROSS_COMPILE_BUILD_SWIFT_TOOLS}" == "0" && "${product}" == "foundation_macros" ]]; then
20
+ echo "Skipping installing Foundation Macros for ${host}, because the host tools are not being built"
21
+ continue
22
+ fi
1
23
diff --git a/swift-corelibs-libdispatch/cmake/modules/SwiftSupport.cmake b/swift-corelibs-libdispatch/cmake/modules/SwiftSupport.cmake
2
24
index 3da519e..e2dd8ed 100644
3
25
--- a/swift-corelibs-libdispatch/cmake/modules/SwiftSupport.cmake
You can’t perform that action at this time.
0 commit comments