@@ -2681,7 +2681,7 @@ function Test-Dispatch {
2681
2681
- Src $SourceCache \swift- corelibs- libdispatch `
2682
2682
- Bin (Get-ProjectBinaryCache $BuildPlatform Dispatch) `
2683
2683
- Platform $BuildPlatform `
2684
- - SwiftSDK (Get-SwiftSDK Windows ) `
2684
+ - SwiftSDK (Get-SwiftSDK $BuildPlatform .OS ) `
2685
2685
- BuildTargets default , ExperimentalTest `
2686
2686
- UseBuiltCompilers C, CXX, Swift `
2687
2687
- Defines @ {
@@ -2770,7 +2770,7 @@ function Test-Foundation {
2770
2770
- Platform $BuildPlatform
2771
2771
2772
2772
Invoke-IsolatingEnvVars {
2773
- $env: DISPATCH_INCLUDE_PATH = " $ ( Get-SwiftSDK Windows ) /usr/include"
2773
+ $env: DISPATCH_INCLUDE_PATH = " $ ( Get-SwiftSDK $BuildPlatform .OS ) /usr/include"
2774
2774
$env: LIBXML_LIBRARY_PATH = " $BinaryCache /$ ( $Platform.Triple ) /usr/lib"
2775
2775
$env: LIBXML_INCLUDE_PATH = " $BinaryCache /$ ( $Platform.Triple ) /usr/include/libxml2"
2776
2776
$env: ZLIB_LIBRARY_PATH = " $BinaryCache /$ ( $Platform.Triple ) /usr/lib"
@@ -2984,7 +2984,7 @@ function Build-System([Hashtable] $Platform) {
2984
2984
- Bin (Get-ProjectBinaryCache $Platform System) `
2985
2985
- Platform $Platform `
2986
2986
- UseBuiltCompilers C, Swift `
2987
- - SwiftSDK (Get-SwiftSDK Windows ) `
2987
+ - SwiftSDK (Get-SwiftSDK $Platform .OS ) `
2988
2988
- BuildTargets default `
2989
2989
- Defines @ {
2990
2990
BUILD_SHARED_LIBS = " NO" ;
@@ -3003,7 +3003,7 @@ function Build-Build([Hashtable] $Platform) {
3003
3003
- InstallTo " $ ( $Platform.ToolchainInstallRoot ) \usr" `
3004
3004
- Platform $Platform `
3005
3005
- UseBuiltCompilers C, CXX, Swift `
3006
- - SwiftSDK (Get-SwiftSDK Windows ) `
3006
+ - SwiftSDK (Get-SwiftSDK $Platform .OS ) `
3007
3007
- Defines (@ {
3008
3008
BUILD_SHARED_LIBS = " YES" ;
3009
3009
CMAKE_STATIC_LIBRARY_PREFIX_Swift = " lib" ;
@@ -3024,7 +3024,7 @@ function Build-ToolsSupportCore([Hashtable] $Platform) {
3024
3024
- InstallTo " $ ( $Platform.ToolchainInstallRoot ) \usr" `
3025
3025
- Platform $Platform `
3026
3026
- UseBuiltCompilers C, Swift `
3027
- - SwiftSDK (Get-SwiftSDK Windows ) `
3027
+ - SwiftSDK (Get-SwiftSDK $Platform .OS ) `
3028
3028
- Defines @ {
3029
3029
BUILD_SHARED_LIBS = " YES" ;
3030
3030
CMAKE_FIND_PACKAGE_PREFER_CONFIG = " YES" ;
@@ -3043,7 +3043,7 @@ function Build-LLBuild([Hashtable] $Platform) {
3043
3043
- Platform $Platform `
3044
3044
- UseMSVCCompilers CXX `
3045
3045
- UseBuiltCompilers Swift `
3046
- - SwiftSDK (Get-SwiftSDK Windows ) `
3046
+ - SwiftSDK (Get-SwiftSDK $Platform .OS ) `
3047
3047
- Defines @ {
3048
3048
BUILD_SHARED_LIBS = " YES" ;
3049
3049
LLBUILD_SUPPORT_BINDINGS = " Swift" ;
@@ -3070,7 +3070,7 @@ function Test-LLBuild {
3070
3070
- Platform $Platform `
3071
3071
- UseMSVCCompilers CXX `
3072
3072
- UseBuiltCompilers Swift `
3073
- - SwiftSDK (Get-SwiftSDK Windows ) `
3073
+ - SwiftSDK (Get-SwiftSDK $BuildPlatform .OS ) `
3074
3074
- BuildTargets default , test-llbuild `
3075
3075
- Defines = @ {
3076
3076
BUILD_SHARED_LIBS = " YES" ;
@@ -3090,7 +3090,7 @@ function Build-ArgumentParser([Hashtable] $Platform) {
3090
3090
- InstallTo " $ ( $Platform.ToolchainInstallRoot ) \usr" `
3091
3091
- Platform $Platform `
3092
3092
- UseBuiltCompilers Swift `
3093
- - SwiftSDK (Get-SwiftSDK Windows ) `
3093
+ - SwiftSDK (Get-SwiftSDK $Platform .OS ) `
3094
3094
- Defines @ {
3095
3095
BUILD_SHARED_LIBS = " YES" ;
3096
3096
BUILD_TESTING = " NO" ;
@@ -3105,7 +3105,7 @@ function Build-Driver([Hashtable] $Platform) {
3105
3105
- InstallTo " $ ( $Platform.ToolchainInstallRoot ) \usr" `
3106
3106
- Platform $Platform `
3107
3107
- UseBuiltCompilers C, CXX, Swift `
3108
- - SwiftSDK (Get-SwiftSDK Windows ) `
3108
+ - SwiftSDK (Get-SwiftSDK $Platform .OS ) `
3109
3109
- Defines @ {
3110
3110
BUILD_SHARED_LIBS = " YES" ;
3111
3111
CMAKE_STATIC_LIBRARY_PREFIX_Swift = " lib" ;
@@ -3127,7 +3127,7 @@ function Build-Crypto([Hashtable] $Platform) {
3127
3127
- Bin (Get-ProjectBinaryCache $Platform Crypto) `
3128
3128
- Platform $Platform `
3129
3129
- UseBuiltCompilers ASM, C, CXX, Swift `
3130
- - SwiftSDK (Get-SwiftSDK Windows ) `
3130
+ - SwiftSDK (Get-SwiftSDK $Platform .OS ) `
3131
3131
- BuildTargets default `
3132
3132
- Defines @ {
3133
3133
BUILD_SHARED_LIBS = " NO" ;
@@ -3143,7 +3143,7 @@ function Build-Collections([Hashtable] $Platform) {
3143
3143
- InstallTo " $ ( $Platform.ToolchainInstallRoot ) \usr" `
3144
3144
- Platform $Platform `
3145
3145
- UseBuiltCompilers C, Swift `
3146
- - SwiftSDK (Get-SwiftSDK Windows ) `
3146
+ - SwiftSDK (Get-SwiftSDK $Platform .OS ) `
3147
3147
- Defines @ {
3148
3148
BUILD_SHARED_LIBS = " YES" ;
3149
3149
CMAKE_STATIC_LIBRARY_PREFIX_Swift = " lib" ;
@@ -3156,7 +3156,7 @@ function Build-ASN1([Hashtable] $Platform) {
3156
3156
- Bin (Get-ProjectBinaryCache $Platform ASN1) `
3157
3157
- Platform $Platform `
3158
3158
- UseBuiltCompilers Swift `
3159
- - SwiftSDK (Get-SwiftSDK Windows ) `
3159
+ - SwiftSDK (Get-SwiftSDK $Platform .OS ) `
3160
3160
- BuildTargets default `
3161
3161
- Defines @ {
3162
3162
BUILD_SHARED_LIBS = " NO" ;
@@ -3170,7 +3170,7 @@ function Build-Certificates([Hashtable] $Platform) {
3170
3170
- Bin (Get-ProjectBinaryCache $Platform Certificates) `
3171
3171
- Platform $Platform `
3172
3172
- UseBuiltCompilers Swift `
3173
- - SwiftSDK (Get-SwiftSDK Windows ) `
3173
+ - SwiftSDK (Get-SwiftSDK $Platform .OS ) `
3174
3174
- BuildTargets default `
3175
3175
- Defines @ {
3176
3176
BUILD_SHARED_LIBS = " NO" ;
@@ -3193,7 +3193,7 @@ function Build-PackageManager([Hashtable] $Platform) {
3193
3193
- InstallTo " $ ( $Platform.ToolchainInstallRoot ) \usr" `
3194
3194
- Platform $Platform `
3195
3195
- UseBuiltCompilers C, Swift `
3196
- - SwiftSDK (Get-SwiftSDK Windows ) `
3196
+ - SwiftSDK (Get-SwiftSDK $Platform .OS ) `
3197
3197
- Defines @ {
3198
3198
BUILD_SHARED_LIBS = " YES" ;
3199
3199
CMAKE_Swift_FLAGS = @ (" -DCRYPTO_v2" );
@@ -3221,7 +3221,7 @@ function Build-Markdown([Hashtable] $Platform) {
3221
3221
- InstallTo " $ ( $Platform.ToolchainInstallRoot ) \usr" `
3222
3222
- Platform $Platform `
3223
3223
- UseBuiltCompilers C, Swift `
3224
- - SwiftSDK (Get-SwiftSDK Windows ) `
3224
+ - SwiftSDK (Get-SwiftSDK $Platform .OS ) `
3225
3225
- Defines @ {
3226
3226
BUILD_SHARED_LIBS = " NO" ;
3227
3227
CMAKE_STATIC_LIBRARY_PREFIX_Swift = " lib" ;
@@ -3238,7 +3238,7 @@ function Build-Format([Hashtable] $Platform) {
3238
3238
- Platform $Platform `
3239
3239
- UseMSVCCompilers C `
3240
3240
- UseBuiltCompilers Swift `
3241
- - SwiftSDK (Get-SwiftSDK Windows ) `
3241
+ - SwiftSDK (Get-SwiftSDK $Platform .OS ) `
3242
3242
- Defines @ {
3243
3243
BUILD_SHARED_LIBS = " YES" ;
3244
3244
ArgumentParser_DIR = (Get-ProjectCMakeModules $Platform ArgumentParser);
@@ -3301,13 +3301,13 @@ function Build-IndexStoreDB([Hashtable] $Platform) {
3301
3301
- Bin (Get-ProjectBinaryCache $Platform IndexStoreDB) `
3302
3302
- Platform $Platform `
3303
3303
- UseBuiltCompilers C, CXX, Swift `
3304
- - SwiftSDK (Get-SwiftSDK Windows ) `
3304
+ - SwiftSDK (Get-SwiftSDK $Platform .OS ) `
3305
3305
- BuildTargets default `
3306
3306
- Defines @ {
3307
3307
BUILD_SHARED_LIBS = " NO" ;
3308
3308
CMAKE_STATIC_LIBRARY_PREFIX_Swift = " lib" ;
3309
- CMAKE_C_FLAGS = @ (" -I$ ( Get-SwiftSDK Windows ) \usr\include" , " -I$ ( Get-SwiftSDK Windows ) \usr\include\Block" );
3310
- CMAKE_CXX_FLAGS = @ (" -I$ ( Get-SwiftSDK Windows ) \usr\include" , " -I$ ( Get-SwiftSDK Windows ) \usr\include\Block" );
3309
+ CMAKE_C_FLAGS = @ (" -I$ ( Get-SwiftSDK $Platform .OS ) \usr\include" , " -I$ ( Get-SwiftSDK $Platform .OS ) \usr\include\Block" );
3310
+ CMAKE_CXX_FLAGS = @ (" -I$ ( Get-SwiftSDK $Platform .OS ) \usr\include" , " -I$ ( Get-SwiftSDK $Platform .OS ) \usr\include\Block" );
3311
3311
LMDB_DIR = (Get-ProjectCMakeModules $Platform LMDB);
3312
3312
}
3313
3313
}
@@ -3319,7 +3319,7 @@ function Build-SourceKitLSP([Hashtable] $Platform) {
3319
3319
- InstallTo " $ ( $Platform.ToolchainInstallRoot ) \usr" `
3320
3320
- Platform $Platform `
3321
3321
- UseBuiltCompilers C, Swift `
3322
- - SwiftSDK (Get-SwiftSDK Windows ) `
3322
+ - SwiftSDK (Get-SwiftSDK $Platform .OS ) `
3323
3323
- Defines @ {
3324
3324
CMAKE_STATIC_LIBRARY_PREFIX_Swift = " lib" ;
3325
3325
SwiftSyntax_DIR = (Get-ProjectCMakeModules $Platform Compilers);
0 commit comments