We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5d5fdf commit c292c89Copy full SHA for c292c89
swift-ci/sdks/android/scripts/build.sh
@@ -359,8 +359,12 @@ for arch in $archs; do
359
$LSP_BUILD \
360
--swift-testing --install-swift-testing \
361
--swift-install-components='compiler;clang-resource-dir-symlink;license;stdlib;sdk-overlay' \
362
+ --extra-cmake-options="-DTHREADS_PREFER_PTHREAD_FLAG=FALSE" \
363
+ --extra-cmake-options="-DCMAKE_THREAD_PREFER_PTHREAD=FALSE" \
364
--cross-compile-append-host-target-to-destdir=False
365
366
+ # THREADS_PREFER_PTHREAD_FLAG=OFF is needed to prevent adding the -pthread flag, which fails on Android
367
+
368
swiftc=$(find ${build_dir}/swift -name 'swiftc' | grep -v bootstrapping)
369
lld=$(find ${build_dir}/swift -name 'ld.lld')
370
0 commit comments