File tree Expand file tree Collapse file tree 4 files changed +4
-16
lines changed Expand file tree Collapse file tree 4 files changed +4
-16
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ source ./scripts/toolchain-vars.sh
27
27
28
28
# Check-out and patch the sources
29
29
./scripts/fetch-source.sh --source-dir ${WORKDIR} /source --swift-tag ${SWIFT_TAG}
30
- ${WORKDIR} /patches/apply-patches.sh ${WORKDIR} /source/swift-project
30
+ . /patches/apply-patches.sh ${WORKDIR} /source/swift-project
31
31
32
32
mkdir -p ${WORKDIR} /products
33
33
chmod ugo+rwx ${WORKDIR} /products
Original file line number Diff line number Diff line change 52
52
53
53
# Check-out and patch the sources
54
54
./scripts/fetch-source.sh --source-dir ${WORKDIR} /source --swift-tag ${SWIFT_TAG}
55
- ${WORKDIR} /patches/apply-patches.sh ${WORKDIR} /source/swift-project
55
+ . /patches/apply-patches.sh ${WORKDIR} /source/swift-project
56
56
57
57
mkdir -p ${WORKDIR} /products
58
58
Original file line number Diff line number Diff line change 3
3
patches_dir=$( dirname $( realpath -- " ${BASH_SOURCE[0]} " ) )
4
4
cd ${1}
5
5
6
- # patch the patch, which seems to only be needed for an API less than 28
7
- # https://github.com/finagolfin/swift-android-sdk/blob/main/swift-android.patch#L110
8
- perl -pi -e ' s/#if os\(Windows\)/#if os\(Android\)/g' ${patches_dir} /swift-android.patch
9
-
10
- # remove the need to link in android-execinfo
11
- perl -pi -e ' s;dispatch android-execinfo;dispatch;g' ${patches_dir} /swift-android.patch
12
-
13
6
case " ${BUILD_SCHEME} " in
14
- release)
15
- git apply -v -C1 ${patches_dir} /swift-android.patch
16
- git apply -v -C1 ${patches_dir} /swift-android-testing-release.patch
17
- ;;
18
7
swift-* -branch)
19
8
git apply -v -C1 ${patches_dir} /swift-android.patch
20
9
git apply -v -C1 ${patches_dir} /swift-android-testing-except-release.patch
@@ -30,7 +19,6 @@ case "${BUILD_SCHEME}" in
30
19
;;
31
20
esac
32
21
33
- perl -pi -e ' s%String\(cString: getpass%\"fake\" //%' swiftpm/Sources/PackageRegistryCommand/PackageRegistryCommand+Auth.swift
34
22
# disable backtrace() for Android (needs either API33+ or libandroid-execinfo, or to manually add in backtrace backport)
35
23
perl -pi -e ' s;os\(Android\);os\(AndroidDISABLED\);g' swift-testing/Sources/Testing/SourceAttribution/Backtrace.swift
36
24
Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ index 758dd1df..02970992 100644
96
96
#endif
97
97
try _throwIfPosixError(posix_spawnattr_init(&spawnAttrs))
98
98
- #if os(Android)
99
- + #if os(Windows )
99
+ + #if os(Android )
100
100
guard var spawnAttrs else {
101
101
throw NSError(domain: NSPOSIXErrorDomain, code: Int(errno),
102
102
userInfo: [NSURLErrorKey:self.executableURL!])
@@ -136,7 +136,7 @@ index e40cb1b..ff2f920 100644
136
136
if(NOT CMAKE_SYSTEM_NAME STREQUAL WASI)
137
137
target_link_libraries(Testing PUBLIC
138
138
- dispatch)
139
- + dispatch android-execinfo )
139
+ + dispatch)
140
140
+ list(GET CMAKE_FIND_ROOT_PATH 0 BT_DIR)
141
141
+ target_include_directories(Testing PUBLIC ${BT_DIR}/usr/include)
142
142
+ target_link_directories(Testing PUBLIC ${BT_DIR}/usr/lib)
You can’t perform that action at this time.
0 commit comments