@@ -24,7 +24,7 @@ index 324d1a77eea..e88601a8701 100644
24
24
25
25
from . import cmake_product
26
26
from . import product
27
- @@ -115,6 +117,24 @@ class SwiftTestingCMakeShim(cmake_product.CMakeProduct):
27
+ @@ -115,6 +117,25 @@ class SwiftTestingCMakeShim(cmake_product.CMakeProduct):
28
28
# FIXME: If we build macros for the builder, specify the path.
29
29
self.cmake_options.define('SwiftTesting_MACRO', 'NO')
30
30
@@ -44,23 +44,12 @@ index 324d1a77eea..e88601a8701 100644
44
44
+ self.cmake_options.define('CMAKE_Swift_FLAGS', flags)
45
45
+ self.cmake_options.define('CMAKE_Swift_COMPILER_TARGET', triple)
46
46
+ self.cmake_options.define('CMAKE_CXX_COMPILER_WORKS', 'True')
47
+ + self.cmake_options.define('CMAKE_SHARED_LINKER_FLAGS', '')
47
48
+ self.cmake_options.define('CMAKE_FIND_ROOT_PATH', self.args.cross_compile_deps_path)
48
49
+
49
50
self.generate_toolchain_file_for_darwin_or_linux(
50
51
host_target, override_macos_deployment_version=override_deployment_version)
51
52
self.build_with_cmake([], self.args.build_variant, [],
52
- diff --git a/swift-corelibs-foundation/CMakeLists.txt b/swift-corelibs-foundation/CMakeLists.txt
53
- index 7f290d16..95366592 100644
54
- --- a/swift-corelibs-foundation/CMakeLists.txt
55
- +++ b/swift-corelibs-foundation/CMakeLists.txt
56
- @@ -51,6 +51,7 @@ if(NOT CMAKE_SYSTEM_NAME STREQUAL Windows)
57
- endif()
58
- endif()
59
-
60
- + set(CMAKE_SHARED_LINKER_FLAGS "")
61
- set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
62
- set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
63
- set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
64
53
diff --git a/swift-corelibs-foundation/Sources/Foundation/CMakeLists.txt b/swift-corelibs-foundation/Sources/Foundation/CMakeLists.txt
65
54
index 016bf294..5c42986a 100644
66
55
--- a/swift-corelibs-foundation/Sources/Foundation/CMakeLists.txt
@@ -91,18 +80,6 @@ index 758dd1df..02970992 100644
91
80
guard var spawnAttrs else {
92
81
throw NSError(domain: NSPOSIXErrorDomain, code: Int(errno),
93
82
userInfo: [NSURLErrorKey:self.executableURL!])
94
- diff --git a/swift-testing/CMakeLists.txt b/swift-testing/CMakeLists.txt
95
- index 1be9a4b..bd7b1bd 100644
96
- --- a/swift-testing/CMakeLists.txt
97
- +++ b/swift-testing/CMakeLists.txt
98
- @@ -28,6 +28,7 @@ list(APPEND CMAKE_MODULE_PATH
99
- ${PROJECT_SOURCE_DIR}/cmake/modules
100
- ${PROJECT_SOURCE_DIR}/cmake/modules/shared)
101
-
102
- + set(CMAKE_SHARED_LINKER_FLAGS "")
103
- set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
104
- set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
105
- set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
106
83
diff --git a/swift-testing/Sources/Testing/CMakeLists.txt b/swift-testing/Sources/Testing/CMakeLists.tx
107
84
index e40cb1b..ff2f920 100644
108
85
--- a/swift-testing/Sources/Testing/CMakeLists.txt
0 commit comments