File tree Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -68,9 +68,6 @@ pushd ${SDKROOT}/src/swift-project
68
68
# https://github.com/finagolfin/swift-android-sdk/blob/main/swift-android.patch#L110
69
69
perl -pi -e ' s/#if os\(Windows\)/#if os\(Android\)/g' $PATCHDIR /swift-android.patch
70
70
71
- echo " ### PATCH: $PATCHDIR /swift-android.patch"
72
- cat $PATCHDIR /swift-android.patch
73
-
74
71
git apply $PATCHDIR /swift-android.patch || true
75
72
git apply -C1 $PATCHDIR /swift-android-ci.patch || true
76
73
@@ -81,6 +78,9 @@ pushd ${SDKROOT}/src/swift-project
81
78
# fix for Process.swift:953:57: error: value of optional type 'posix_spawnattr_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawnattr_t' (aka 'OpaquePointer')
82
79
# perl -pi -e 's%canImport\(Darwin\) \|\| os\(Android\) \|\| os\(OpenBSD\)%canImport\(Darwin\) || os\(AndroidXXX\) || os\(OpenBSD\)%g' swift-corelibs-foundation/Sources/Foundation/Process.swift
83
80
81
+ # disable backtrace() for Android (needs either API33+ or libandroid-execinfo, or to manually add in backtrace backport)
82
+ perl -pi -e ' s/os\(Android\)/os\(AndroidDISABLED\)/g' swift-testing/Sources/Testing/SourceAttribution/Backtrace.swift
83
+
84
84
git apply $PATCHDIR /swift-android-ci-release.patch || true
85
85
git apply $PATCHDIR /swift-android-testing-release.patch || true
86
86
Original file line number Diff line number Diff line change @@ -357,19 +357,16 @@ for arch in $archs; do
357
357
--skip-local-build \
358
358
--build-swift-static-stdlib \
359
359
--swiftpm \
360
- --llbuild --install-llbuild \
361
360
--install-swift \
362
361
--install-libdispatch \
363
362
--install-foundation \
364
363
--xctest --install-xctest \
365
364
$LSP_BUILD \
366
365
--swift-testing --install-swift-testing \
367
- --swift-install-components=' compiler;clang-resource-dir-symlink;license;stdlib;sdk-overlay' \
368
- --extra-cmake-options=" -DCMAKE_HAVE_LIBC_PTHREAD=YES" \
369
- --extra-cmake-options=" -DTHREADS_PREFER_PTHREAD_FLAG=OFF" \
370
- --extra-cmake-options=" -DCMAKE_THREAD_PREFER_PTHREAD=OFF" \
371
366
--cross-compile-append-host-target-to-destdir=False
372
367
368
+ # --llbuild --install-llbuild \
369
+
373
370
# --extra-cmake-options="-DCMAKE_HAVE_LIBC_PTHREAD=YES" \
374
371
# --extra-cmake-options="-DTHREADS_PREFER_PTHREAD_FLAG=OFF" \
375
372
# --extra-cmake-options="-DCMAKE_THREAD_PREFER_PTHREAD=OFF" \
You can’t perform that action at this time.
0 commit comments