@@ -2717,7 +2717,7 @@ function Test-Dispatch {
2717
2717
- Src $SourceCache \swift- corelibs- libdispatch `
2718
2718
- Bin (Get-ProjectBinaryCache $BuildPlatform Dispatch) `
2719
2719
- Platform $BuildPlatform `
2720
- - SwiftSDK (Get-SwiftSDK Windows ) `
2720
+ - SwiftSDK (Get-SwiftSDK $BuildPlatform .OS ) `
2721
2721
- BuildTargets default , ExperimentalTest `
2722
2722
- UseBuiltCompilers C, CXX, Swift `
2723
2723
- Defines @ {
@@ -2806,7 +2806,7 @@ function Test-Foundation {
2806
2806
- Platform $BuildPlatform
2807
2807
2808
2808
Invoke-IsolatingEnvVars {
2809
- $env: DISPATCH_INCLUDE_PATH = " $ ( Get-SwiftSDK Windows ) /usr/include"
2809
+ $env: DISPATCH_INCLUDE_PATH = " $ ( Get-SwiftSDK $BuildPlatform .OS ) /usr/include"
2810
2810
$env: LIBXML_LIBRARY_PATH = " $BinaryCache /$ ( $Platform.Triple ) /usr/lib"
2811
2811
$env: LIBXML_INCLUDE_PATH = " $BinaryCache /$ ( $Platform.Triple ) /usr/include/libxml2"
2812
2812
$env: ZLIB_LIBRARY_PATH = " $BinaryCache /$ ( $Platform.Triple ) /usr/lib"
@@ -3020,7 +3020,7 @@ function Build-System([Hashtable] $Platform) {
3020
3020
- Bin (Get-ProjectBinaryCache $Platform System) `
3021
3021
- Platform $Platform `
3022
3022
- UseBuiltCompilers C, Swift `
3023
- - SwiftSDK (Get-SwiftSDK Windows ) `
3023
+ - SwiftSDK (Get-SwiftSDK $Platform .OS ) `
3024
3024
- BuildTargets default `
3025
3025
- Defines @ {
3026
3026
BUILD_SHARED_LIBS = " NO" ;
@@ -3039,7 +3039,7 @@ function Build-Build([Hashtable] $Platform) {
3039
3039
- InstallTo " $ ( $Platform.ToolchainInstallRoot ) \usr" `
3040
3040
- Platform $Platform `
3041
3041
- UseBuiltCompilers C, CXX, Swift `
3042
- - SwiftSDK (Get-SwiftSDK Windows ) `
3042
+ - SwiftSDK (Get-SwiftSDK $Platform .OS ) `
3043
3043
- Defines (@ {
3044
3044
BUILD_SHARED_LIBS = " YES" ;
3045
3045
CMAKE_STATIC_LIBRARY_PREFIX_Swift = " lib" ;
@@ -3060,7 +3060,7 @@ function Build-ToolsSupportCore([Hashtable] $Platform) {
3060
3060
- InstallTo " $ ( $Platform.ToolchainInstallRoot ) \usr" `
3061
3061
- Platform $Platform `
3062
3062
- UseBuiltCompilers C, Swift `
3063
- - SwiftSDK (Get-SwiftSDK Windows ) `
3063
+ - SwiftSDK (Get-SwiftSDK $Platform .OS ) `
3064
3064
- Defines @ {
3065
3065
BUILD_SHARED_LIBS = " YES" ;
3066
3066
CMAKE_FIND_PACKAGE_PREFER_CONFIG = " YES" ;
@@ -3079,7 +3079,7 @@ function Build-LLBuild([Hashtable] $Platform) {
3079
3079
- Platform $Platform `
3080
3080
- UseMSVCCompilers CXX `
3081
3081
- UseBuiltCompilers Swift `
3082
- - SwiftSDK (Get-SwiftSDK Windows ) `
3082
+ - SwiftSDK (Get-SwiftSDK $Platform .OS ) `
3083
3083
- Defines @ {
3084
3084
BUILD_SHARED_LIBS = " YES" ;
3085
3085
LLBUILD_SUPPORT_BINDINGS = " Swift" ;
@@ -3106,7 +3106,7 @@ function Test-LLBuild {
3106
3106
- Platform $Platform `
3107
3107
- UseMSVCCompilers CXX `
3108
3108
- UseBuiltCompilers Swift `
3109
- - SwiftSDK (Get-SwiftSDK Windows ) `
3109
+ - SwiftSDK (Get-SwiftSDK $BuildPlatform .OS ) `
3110
3110
- BuildTargets default , test-llbuild `
3111
3111
- Defines = @ {
3112
3112
BUILD_SHARED_LIBS = " YES" ;
@@ -3126,7 +3126,7 @@ function Build-ArgumentParser([Hashtable] $Platform) {
3126
3126
- InstallTo " $ ( $Platform.ToolchainInstallRoot ) \usr" `
3127
3127
- Platform $Platform `
3128
3128
- UseBuiltCompilers Swift `
3129
- - SwiftSDK (Get-SwiftSDK Windows ) `
3129
+ - SwiftSDK (Get-SwiftSDK $Platform .OS ) `
3130
3130
- Defines @ {
3131
3131
BUILD_SHARED_LIBS = " YES" ;
3132
3132
BUILD_TESTING = " NO" ;
@@ -3141,7 +3141,7 @@ function Build-Driver([Hashtable] $Platform) {
3141
3141
- InstallTo " $ ( $Platform.ToolchainInstallRoot ) \usr" `
3142
3142
- Platform $Platform `
3143
3143
- UseBuiltCompilers C, CXX, Swift `
3144
- - SwiftSDK (Get-SwiftSDK Windows ) `
3144
+ - SwiftSDK (Get-SwiftSDK $Platform .OS ) `
3145
3145
- Defines @ {
3146
3146
BUILD_SHARED_LIBS = " YES" ;
3147
3147
CMAKE_STATIC_LIBRARY_PREFIX_Swift = " lib" ;
@@ -3163,7 +3163,7 @@ function Build-Crypto([Hashtable] $Platform) {
3163
3163
- Bin (Get-ProjectBinaryCache $Platform Crypto) `
3164
3164
- Platform $Platform `
3165
3165
- UseBuiltCompilers ASM, C, CXX, Swift `
3166
- - SwiftSDK (Get-SwiftSDK Windows ) `
3166
+ - SwiftSDK (Get-SwiftSDK $Platform .OS ) `
3167
3167
- BuildTargets default `
3168
3168
- Defines @ {
3169
3169
BUILD_SHARED_LIBS = " NO" ;
@@ -3179,7 +3179,7 @@ function Build-Collections([Hashtable] $Platform) {
3179
3179
- InstallTo " $ ( $Platform.ToolchainInstallRoot ) \usr" `
3180
3180
- Platform $Platform `
3181
3181
- UseBuiltCompilers C, Swift `
3182
- - SwiftSDK (Get-SwiftSDK Windows ) `
3182
+ - SwiftSDK (Get-SwiftSDK $Platform .OS ) `
3183
3183
- Defines @ {
3184
3184
BUILD_SHARED_LIBS = " YES" ;
3185
3185
CMAKE_STATIC_LIBRARY_PREFIX_Swift = " lib" ;
@@ -3192,7 +3192,7 @@ function Build-ASN1([Hashtable] $Platform) {
3192
3192
- Bin (Get-ProjectBinaryCache $Platform ASN1) `
3193
3193
- Platform $Platform `
3194
3194
- UseBuiltCompilers Swift `
3195
- - SwiftSDK (Get-SwiftSDK Windows ) `
3195
+ - SwiftSDK (Get-SwiftSDK $Platform .OS ) `
3196
3196
- BuildTargets default `
3197
3197
- Defines @ {
3198
3198
BUILD_SHARED_LIBS = " NO" ;
@@ -3206,7 +3206,7 @@ function Build-Certificates([Hashtable] $Platform) {
3206
3206
- Bin (Get-ProjectBinaryCache $Platform Certificates) `
3207
3207
- Platform $Platform `
3208
3208
- UseBuiltCompilers Swift `
3209
- - SwiftSDK (Get-SwiftSDK Windows ) `
3209
+ - SwiftSDK (Get-SwiftSDK $Platform .OS ) `
3210
3210
- BuildTargets default `
3211
3211
- Defines @ {
3212
3212
BUILD_SHARED_LIBS = " NO" ;
@@ -3229,7 +3229,7 @@ function Build-PackageManager([Hashtable] $Platform) {
3229
3229
- InstallTo " $ ( $Platform.ToolchainInstallRoot ) \usr" `
3230
3230
- Platform $Platform `
3231
3231
- UseBuiltCompilers C, Swift `
3232
- - SwiftSDK (Get-SwiftSDK Windows ) `
3232
+ - SwiftSDK (Get-SwiftSDK $Platform .OS ) `
3233
3233
- Defines @ {
3234
3234
BUILD_SHARED_LIBS = " YES" ;
3235
3235
CMAKE_Swift_FLAGS = @ (" -DCRYPTO_v2" );
@@ -3257,7 +3257,7 @@ function Build-Markdown([Hashtable] $Platform) {
3257
3257
- InstallTo " $ ( $Platform.ToolchainInstallRoot ) \usr" `
3258
3258
- Platform $Platform `
3259
3259
- UseBuiltCompilers C, Swift `
3260
- - SwiftSDK (Get-SwiftSDK Windows ) `
3260
+ - SwiftSDK (Get-SwiftSDK $Platform .OS ) `
3261
3261
- Defines @ {
3262
3262
BUILD_SHARED_LIBS = " NO" ;
3263
3263
CMAKE_STATIC_LIBRARY_PREFIX_Swift = " lib" ;
@@ -3274,7 +3274,7 @@ function Build-Format([Hashtable] $Platform) {
3274
3274
- Platform $Platform `
3275
3275
- UseMSVCCompilers C `
3276
3276
- UseBuiltCompilers Swift `
3277
- - SwiftSDK (Get-SwiftSDK Windows ) `
3277
+ - SwiftSDK (Get-SwiftSDK $Platform .OS ) `
3278
3278
- Defines @ {
3279
3279
BUILD_SHARED_LIBS = " YES" ;
3280
3280
ArgumentParser_DIR = (Get-ProjectCMakeModules $Platform ArgumentParser);
@@ -3337,13 +3337,13 @@ function Build-IndexStoreDB([Hashtable] $Platform) {
3337
3337
- Bin (Get-ProjectBinaryCache $Platform IndexStoreDB) `
3338
3338
- Platform $Platform `
3339
3339
- UseBuiltCompilers C, CXX, Swift `
3340
- - SwiftSDK (Get-SwiftSDK Windows ) `
3340
+ - SwiftSDK (Get-SwiftSDK $Platform .OS ) `
3341
3341
- BuildTargets default `
3342
3342
- Defines @ {
3343
3343
BUILD_SHARED_LIBS = " NO" ;
3344
3344
CMAKE_STATIC_LIBRARY_PREFIX_Swift = " lib" ;
3345
- CMAKE_C_FLAGS = @ (" -I$ ( Get-SwiftSDK Windows ) \usr\include" , " -I$ ( Get-SwiftSDK Windows ) \usr\include\Block" );
3346
- CMAKE_CXX_FLAGS = @ (" -I$ ( Get-SwiftSDK Windows ) \usr\include" , " -I$ ( Get-SwiftSDK Windows ) \usr\include\Block" );
3345
+ CMAKE_C_FLAGS = @ (" -I$ ( Get-SwiftSDK $Platform .OS ) \usr\include" , " -I$ ( Get-SwiftSDK $Platform .OS ) \usr\include\Block" );
3346
+ CMAKE_CXX_FLAGS = @ (" -I$ ( Get-SwiftSDK $Platform .OS ) \usr\include" , " -I$ ( Get-SwiftSDK $Platform .OS ) \usr\include\Block" );
3347
3347
LMDB_DIR = (Get-ProjectCMakeModules $Platform LMDB);
3348
3348
}
3349
3349
}
@@ -3355,7 +3355,7 @@ function Build-SourceKitLSP([Hashtable] $Platform) {
3355
3355
- InstallTo " $ ( $Platform.ToolchainInstallRoot ) \usr" `
3356
3356
- Platform $Platform `
3357
3357
- UseBuiltCompilers C, Swift `
3358
- - SwiftSDK (Get-SwiftSDK Windows ) `
3358
+ - SwiftSDK (Get-SwiftSDK $Platform .OS ) `
3359
3359
- Defines @ {
3360
3360
CMAKE_STATIC_LIBRARY_PREFIX_Swift = " lib" ;
3361
3361
SwiftSyntax_DIR = (Get-ProjectCMakeModules $Platform Compilers);
0 commit comments