@@ -59,47 +59,6 @@ index 7f290d16..95366592 100644
59
59
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
60
60
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
61
61
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
62
- diff --git a/swift-corelibs-foundation/Sources/Foundation/CMakeLists.txt b/swift-corelibs-foundation/Sources/Foundation/CMakeLists.txt
63
- index 016bf294..5c42986a 100644
64
- --- a/swift-corelibs-foundation/Sources/Foundation/CMakeLists.txt
65
- +++ b/swift-corelibs-foundation/Sources/Foundation/CMakeLists.txt
66
- @@ -162,6 +162,10 @@ if(NOT BUILD_SHARED_LIBS)
67
- "SHELL:$<$<COMPILE_LANGUAGE:Swift>:-Xfrontend -public-autolink-library -Xfrontend _FoundationICU>")
68
- target_compile_options(Foundation PRIVATE
69
- "SHELL:$<$<COMPILE_LANGUAGE:Swift>:-Xfrontend -public-autolink-library -Xfrontend swiftSynchronization>")
70
- + if(${CMAKE_SYSTEM_NAME} STREQUAL Android)
71
- + target_compile_options(Foundation PRIVATE
72
- + "SHELL:$<$<COMPILE_LANGUAGE:Swift>:-Xfrontend -public-autolink-library -Xfrontend android-spawn>")
73
- + endif()
74
- endif()
75
-
76
- set_target_properties(Foundation PROPERTIES
77
- @@ -174,6 +174,12 @@
78
- target_link_libraries(Foundation PUBLIC
79
- swiftDispatch)
80
- endif()
81
- + if(${CMAKE_SYSTEM_NAME} STREQUAL Android)
82
- + target_link_libraries(Foundation PRIVATE android-spawn)
83
- + list(GET CMAKE_FIND_ROOT_PATH 0 SPAWN_DIR)
84
- + target_include_directories(Foundation PUBLIC ${SPAWN_DIR}/usr/include)
85
- + target_link_directories(Foundation PUBLIC ${SPAWN_DIR}/usr/lib)
86
- + endif()
87
-
88
- if(LINKER_SUPPORTS_BUILD_ID)
89
- target_link_options(Foundation PRIVATE "LINKER:--build-id=sha1")
90
- diff --git a/swift-corelibs-foundation/Sources/Foundation/Process.swift b/swift-corelibs-foundation/Sources/Foundation/Process.swift
91
- index 758dd1df..02970992 100644
92
- --- a/swift-corelibs-foundation/Sources/Foundation/Process.swift
93
- +++ b/swift-corelibs-foundation/Sources/Foundation/Process.swift
94
- @@ -944,7 +944,7 @@ open class Process: NSObject, @unchecked Sendable {
95
- var spawnAttrs: posix_spawnattr_t = posix_spawnattr_t()
96
- #endif
97
- try _throwIfPosixError(posix_spawnattr_init(&spawnAttrs))
98
- - #if os(Android)
99
- + #if os(Android)
100
- guard var spawnAttrs else {
101
- throw NSError(domain: NSPOSIXErrorDomain, code: Int(errno),
102
- userInfo: [NSURLErrorKey:self.executableURL!])
103
62
diff --git a/swift-foundation/cmake/modules/SwiftFoundationSwiftSupport.cmake b/swift-foundation/cmake/modules/SwiftFoundationSwiftSupport.cmake
104
63
index cbdfc2a..bb4121d 100644
105
64
--- a/swift-foundation/cmake/modules/SwiftFoundationSwiftSupport.cmake
@@ -127,22 +86,6 @@ index 1be9a4b..bd7b1bd 100644
127
86
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
128
87
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
129
88
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
130
- diff --git a/swift-testing/Sources/Testing/CMakeLists.txt b/swift-testing/Sources/Testing/CMakeLists.tx
131
- index e40cb1b..ff2f920 100644
132
- --- a/swift-testing/Sources/Testing/CMakeLists.txt
133
- +++ b/swift-testing/Sources/Testing/CMakeLists.txt
134
- @@ -110,7 +110,10 @@ target_link_libraries(Testing PRIVATE
135
- if(NOT APPLE)
136
- if(NOT CMAKE_SYSTEM_NAME STREQUAL WASI)
137
- target_link_libraries(Testing PUBLIC
138
- - dispatch)
139
- + dispatch)
140
- + list(GET CMAKE_FIND_ROOT_PATH 0 BT_DIR)
141
- + target_include_directories(Testing PUBLIC ${BT_DIR}/usr/include)
142
- + target_link_directories(Testing PUBLIC ${BT_DIR}/usr/lib)
143
- endif()
144
- target_link_libraries(Testing PUBLIC
145
- Foundation)
146
89
diff --git a/swift-testing/cmake/modules/TargetTriple.cmake b/swift-testing/cmake/modules/TargetTriple.cmake
147
90
index e087cc4..02f3a95 100644
148
91
--- a/swift-testing/cmake/modules/TargetTriple.cmake
0 commit comments