fc1c4c4bd5
* TERMUX_PKG_QUICK_REBUILD: don't delete the host build if doing a quick rebuild * swift: update from 5.2.1 to 5.2.2 and fix static compilation
36 lines
1.2 KiB
Plaintext
36 lines
1.2 KiB
Plaintext
diff --git a/swift/utils/build-script-impl b/swift/utils/build-script-impl
|
|
index b1d060328bc..218c9215260 100755
|
|
--- a/swift/utils/build-script-impl
|
|
+++ b/swift/utils/build-script-impl
|
|
@@ -1782,6 +1782,13 @@
|
|
-DSWIFT_ANDROID_DEPLOY_DEVICE_PATH:STRING="${ANDROID_DEPLOY_DEVICE_PATH}"
|
|
-DSWIFT_SDK_ANDROID_ARCHITECTURES:STRING="${ANDROID_ARCH}"
|
|
)
|
|
+ if [[ "${host}" == "${LOCAL_HOST}" ]] ; then
|
|
+ cmake_options=(
|
|
+ "${cmake_options[@]}"
|
|
+ -DCMAKE_FIND_ROOT_PATH=@TERMUX_PREFIX@
|
|
+ -DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM=NEVER
|
|
+ )
|
|
+ fi
|
|
fi
|
|
|
|
if [[ "${DARWIN_OVERLAY_TARGET}" != "" ]]; then
|
|
diff --git a/swift/utils/gen-static-stdlib-link-args b/swift/utils/gen-static-stdlib-link-args
|
|
index 0fa009d67d3..abd98c2493f 100755
|
|
--- a/swift/utils/gen-static-stdlib-link-args
|
|
+++ b/swift/utils/gen-static-stdlib-link-args
|
|
@@ -60,11 +60,8 @@ function write_linkfile {
|
|
fi
|
|
cat >$OUTPUTFILE <<EOF
|
|
-ldl
|
|
--lpthread
|
|
--latomic
|
|
-lswiftCore
|
|
--latomic
|
|
--lswiftImageInspectionShared
|
|
+-llog
|
|
$ICU_LIBS
|
|
-lstdc++
|
|
-lm
|