File tree Expand file tree Collapse file tree 5 files changed +46
-12
lines changed Expand file tree Collapse file tree 5 files changed +46
-12
lines changed Original file line number Diff line number Diff line change @@ -134,7 +134,7 @@ jobs:
134
134
if ${{ matrix.version == 'trunk' }}; then
135
135
git apply swift-android-trunk-libdispatch.patch
136
136
else
137
- git apply swift-android-ci-devel.patch
137
+ git apply swift-android-ci-devel.patch swift-android-devel.patch
138
138
fi
139
139
git apply -C2 swift-android-ci-except-release.patch
140
140
BUILD_FLAG="--cross-compile-build-swift-tools=0"
Original file line number Diff line number Diff line change
1
+ diff --git a/swift-corelibs-foundation/Sources/Foundation/CMakeLists.txt b/swift-corelibs-foundation/Sources/Foundation/CMakeLists.txt
2
+ index 016bf294..5c42986a 100644
3
+ --- a/swift-corelibs-foundation/Sources/Foundation/CMakeLists.txt
4
+ +++ b/swift-corelibs-foundation/Sources/Foundation/CMakeLists.txt
5
+ @@ -162,6 +162,10 @@ if(NOT BUILD_SHARED_LIBS)
6
+ "SHELL:$<$<COMPILE_LANGUAGE:Swift>:-Xfrontend -public-autolink-library -Xfrontend _FoundationICU>")
7
+ target_compile_options(Foundation PRIVATE
8
+ "SHELL:$<$<COMPILE_LANGUAGE:Swift>:-Xfrontend -public-autolink-library -Xfrontend swiftSynchronization>")
9
+ + if(${CMAKE_SYSTEM_NAME} STREQUAL Android)
10
+ + target_compile_options(Foundation PRIVATE
11
+ + "SHELL:$<$<COMPILE_LANGUAGE:Swift>:-Xfrontend -public-autolink-library -Xfrontend android-spawn>")
12
+ + endif()
13
+ endif()
14
+
15
+ if(dispatch_FOUND)
Original file line number Diff line number Diff line change @@ -58,3 +58,18 @@ index 90f4aa78..0429425b 100644
58
58
// Glibc versions prior to 2.29 don't support posix_spawn_file_actions_addchdir_np, impacting:
59
59
// - Amazon Linux 2 (EoL mid-2025)
60
60
return ENOSYS;
61
+ diff --git a/swift-corelibs-foundation/Sources/Foundation/CMakeLists.txt b/swift-corelibs-foundation/Sources/Foundation/CMakeLists.txt
62
+ index 016bf294..5c42986a 100644
63
+ --- a/swift-corelibs-foundation/Sources/Foundation/CMakeLists.txt
64
+ +++ b/swift-corelibs-foundation/Sources/Foundation/CMakeLists.txt
65
+ @@ -162,6 +162,10 @@ if(NOT BUILD_SHARED_LIBS)
66
+ "SHELL:$<$<COMPILE_LANGUAGE:Swift>:-Xfrontend -public-autolink-library -Xfrontend _FoundationICU>")
67
+ target_compile_options(Foundation PRIVATE
68
+ "SHELL:$<$<COMPILE_LANGUAGE:Swift>:-Xfrontend -public-autolink-library -Xfrontend swiftSynchronization>")
69
+ + if(${CMAKE_SYSTEM_NAME} STREQUAL Android)
70
+ + target_compile_options(Foundation PRIVATE
71
+ + "SHELL:$<$<COMPILE_LANGUAGE:Swift>:-Xfrontend -public-autolink-library -Xfrontend android-spawn>")
72
+ + endif()
73
+ endif()
74
+
75
+ set_target_properties(Foundation PROPERTIES
Original file line number Diff line number Diff line change
1
+ diff --git a/swift-corelibs-foundation/Sources/Foundation/CMakeLists.txt b/swift-corelibs-foundation/Sources/Foundation/CMakeLists.txt
2
+ index 016bf294..5c42986a 100644
3
+ --- a/swift-corelibs-foundation/Sources/Foundation/CMakeLists.txt
4
+ +++ b/swift-corelibs-foundation/Sources/Foundation/CMakeLists.txt
5
+ @@ -162,6 +162,10 @@ if(NOT BUILD_SHARED_LIBS)
6
+ "SHELL:$<$<COMPILE_LANGUAGE:Swift>:-Xfrontend -public-autolink-library -Xfrontend _FoundationICU>")
7
+ target_compile_options(Foundation PRIVATE
8
+ "SHELL:$<$<COMPILE_LANGUAGE:Swift>:-Xfrontend -public-autolink-library -Xfrontend $<$<PLATFORM_ID:Windows>:${CMAKE_STATIC_LIBRARY_PREFIX_Swift}>swiftSynchronization>")
9
+ + if(${CMAKE_SYSTEM_NAME} STREQUAL Android)
10
+ + target_compile_options(Foundation PRIVATE
11
+ + "SHELL:$<$<COMPILE_LANGUAGE:Swift>:-Xfrontend -public-autolink-library -Xfrontend android-spawn>")
12
+ + endif()
13
+ endif()
14
+
15
+ if(dispatch_FOUND)
1
16
diff --git a/swift-corelibs-libdispatch/src/swift/CMakeLists.txt b/swift-corelibs-libdispatch/src/swift/CMakeLists.txt
2
17
index 38bef37..d0ddf98 100644
3
18
--- a/swift-corelibs-libdispatch/src/swift/CMakeLists.txt
Original file line number Diff line number Diff line change @@ -65,17 +65,6 @@ diff --git a/swift-corelibs-foundation/Sources/Foundation/CMakeLists.txt b/swift
65
65
index 016bf294..5c42986a 100644
66
66
--- a/swift-corelibs-foundation/Sources/Foundation/CMakeLists.txt
67
67
+++ b/swift-corelibs-foundation/Sources/Foundation/CMakeLists.txt
68
- @@ -162,6 +162,10 @@ if(NOT BUILD_SHARED_LIBS)
69
- "SHELL:$<$<COMPILE_LANGUAGE:Swift>:-Xfrontend -public-autolink-library -Xfrontend _FoundationICU>")
70
- target_compile_options(Foundation PRIVATE
71
- "SHELL:$<$<COMPILE_LANGUAGE:Swift>:-Xfrontend -public-autolink-library -Xfrontend swiftSynchronization>")
72
- + if(${CMAKE_SYSTEM_NAME} STREQUAL Android)
73
- + target_compile_options(Foundation PRIVATE
74
- + "SHELL:$<$<COMPILE_LANGUAGE:Swift>:-Xfrontend -public-autolink-library -Xfrontend android-spawn>")
75
- + endif()
76
- endif()
77
-
78
- set_target_properties(Foundation PROPERTIES
79
68
@@ -174,6 +174,12 @@
80
69
target_link_libraries(Foundation PUBLIC
81
70
swiftDispatch)
You can’t perform that action at this time.
0 commit comments