@@ -2124,7 +2124,6 @@ function Build-LLVM([Hashtable] $Platform) {
2124
2124
- Platform $Platform `
2125
2125
- UseBuiltCompilers C, CXX `
2126
2126
- Defines @ {
2127
- CMAKE_SYSTEM_NAME = $Platform.OS.ToString ();
2128
2127
LLVM_HOST_TRIPLE = $Platform.Triple ;
2129
2128
}
2130
2129
}
@@ -2147,7 +2146,6 @@ function Build-Sanitizers([Hashtable] $Platform) {
2147
2146
- UseBuiltCompilers ASM, C, CXX `
2148
2147
- BuildTargets " install-compiler-rt" `
2149
2148
- Defines (@ {
2150
- CMAKE_SYSTEM_NAME = $Platform.OS.ToString ();
2151
2149
LLVM_DIR = " $LLVMTargetCache \lib\cmake\llvm" ;
2152
2150
LLVM_ENABLE_PER_TARGET_RUNTIME_DIR = " YES" ;
2153
2151
COMPILER_RT_DEFAULT_TARGET_ONLY = " YES" ;
@@ -2161,7 +2159,6 @@ function Build-Sanitizers([Hashtable] $Platform) {
2161
2159
- UseBuiltCompilers ASM, C, CXX `
2162
2160
- BuildTargets " install-compiler-rt" `
2163
2161
- Defines (@ {
2164
- CMAKE_SYSTEM_NAME = $Platform.OS.ToString ();
2165
2162
LLVM_DIR = " $LLVMTargetCache \lib\cmake\llvm" ;
2166
2163
LLVM_ENABLE_PER_TARGET_RUNTIME_DIR = " YES" ;
2167
2164
COMPILER_RT_DEFAULT_TARGET_ONLY = " YES" ;
@@ -2185,7 +2182,6 @@ function Build-ZLib([Hashtable] $Platform) {
2185
2182
- Defines @ {
2186
2183
BUILD_SHARED_LIBS = " NO" ;
2187
2184
CMAKE_POSITION_INDEPENDENT_CODE = " YES" ;
2188
- CMAKE_SYSTEM_NAME = $Platform.OS.ToString ();
2189
2185
}
2190
2186
}
2191
2187
@@ -2199,7 +2195,6 @@ function Build-XML2([Hashtable] $Platform) {
2199
2195
- Defines @ {
2200
2196
BUILD_SHARED_LIBS = " NO" ;
2201
2197
CMAKE_POSITION_INDEPENDENT_CODE = " YES" ;
2202
- CMAKE_SYSTEM_NAME = $Platform.OS.ToString ();
2203
2198
LIBXML2_WITH_ICONV = " NO" ;
2204
2199
LIBXML2_WITH_ICU = " NO" ;
2205
2200
LIBXML2_WITH_LZMA = " NO" ;
@@ -2230,7 +2225,6 @@ function Build-DS2([Hashtable] $Platform) {
2230
2225
- InstallTo " $ ( Get-PlatformRoot $Platform.OS ) \Developer\Library\ds2\usr" `
2231
2226
- Platform $Platform `
2232
2227
- Defines @ {
2233
- CMAKE_SYSTEM_NAME = $Platform.OS.ToString ();
2234
2228
DS2_REGSGEN2 = " $ ( Get-ProjectBinaryCache $BuildPlatform RegsGen2) /regsgen2.exe" ;
2235
2229
DS2_PROGRAM_PREFIX = " $ ( Get-ModuleTriple $Platform ) -" ;
2236
2230
BISON_EXECUTABLE = " $ ( Get-BisonExecutable ) " ;
@@ -2256,7 +2250,6 @@ function Build-CURL([Hashtable] $Platform) {
2256
2250
BUILD_SHARED_LIBS = " NO" ;
2257
2251
BUILD_TESTING = " NO" ;
2258
2252
CMAKE_POSITION_INDEPENDENT_CODE = " YES" ;
2259
- CMAKE_SYSTEM_NAME = $Platform.OS.ToString ();
2260
2253
BUILD_CURL_EXE = " NO" ;
2261
2254
BUILD_LIBCURL_DOCS = " NO" ;
2262
2255
BUILD_MISC_DOCS = " NO" ;
@@ -2369,7 +2362,6 @@ function Build-Runtime([Hashtable] $Platform) {
2369
2362
- CacheScript $SourceCache \swift\cmake\caches\Runtime- $ ($Platform.OS.ToString ())- $ ($Platform.Architecture.LLVMName ).cmake `
2370
2363
- Defines ($PlatformDefines + @ {
2371
2364
CMAKE_Swift_COMPILER_WORKS = " YES" ;
2372
- CMAKE_SYSTEM_NAME = $Platform.OS.ToString ();
2373
2365
LLVM_DIR = " $ ( Get-ProjectBinaryCache $Platform LLVM) \lib\cmake\llvm" ;
2374
2366
SWIFT_ENABLE_EXPERIMENTAL_CONCURRENCY = " YES" ;
2375
2367
SWIFT_ENABLE_EXPERIMENTAL_CXX_INTEROP = " YES" ;
0 commit comments