@@ -3056,6 +3056,12 @@ function Build-FoundationMacros([Hashtable] $Platform) {
3056
3056
}
3057
3057
3058
3058
function Build-XCTest ([Hashtable ] $Platform ) {
3059
+ $SwiftFlags = if ($Platform.OS -eq [OS ]::Windows) {
3060
+ @ ();
3061
+ } else {
3062
+ @ (" -I$ ( Get-SwiftSDK - OS $Platform.OS - Identifier $Platform.DefaultSDK ) \usr\lib\swift" );
3063
+ }
3064
+
3059
3065
Build-CMakeProject `
3060
3066
- Src $SourceCache \swift- corelibs- xctest `
3061
3067
- Bin (Get-ProjectBinaryCache $Platform XCTest) `
@@ -3066,6 +3072,7 @@ function Build-XCTest([Hashtable] $Platform) {
3066
3072
- Defines @ {
3067
3073
BUILD_SHARED_LIBS = " YES" ;
3068
3074
CMAKE_INSTALL_BINDIR = $Platform.BinaryDir ;
3075
+ CMAKE_Swift_FLAGS = $SwiftFlags ;
3069
3076
ENABLE_TESTING = " NO" ;
3070
3077
XCTest_INSTALL_NESTED_SUBDIR = " YES" ;
3071
3078
}
@@ -3112,6 +3119,12 @@ function Test-XCTest {
3112
3119
}
3113
3120
3114
3121
function Build-Testing ([Hashtable ] $Platform ) {
3122
+ $SwiftFlags = if ($Platform.OS -eq [OS ]::Windows) {
3123
+ @ ();
3124
+ } else {
3125
+ @ (" -I$ ( Get-SwiftSDK - OS $Platform.OS - Identifier $Platform.DefaultSDK ) \usr\lib\swift" );
3126
+ }
3127
+
3115
3128
Build-CMakeProject `
3116
3129
- Src $SourceCache \swift- testing `
3117
3130
- Bin (Get-ProjectBinaryCache $Platform Testing) `
@@ -3122,6 +3135,7 @@ function Build-Testing([Hashtable] $Platform) {
3122
3135
- Defines @ {
3123
3136
BUILD_SHARED_LIBS = " YES" ;
3124
3137
CMAKE_INSTALL_BINDIR = $Platform.BinaryDir ;
3138
+ CMAKE_Swift_FLAGS = $SwiftFlags ;
3125
3139
SwiftTesting_MACRO = " $ ( Get-ProjectBinaryCache $BuildPlatform BootstrapTestingMacros) \TestingMacros.dll" ;
3126
3140
SwiftTesting_INSTALL_NESTED_SUBDIR = " YES" ;
3127
3141
}
@@ -3856,7 +3870,7 @@ function Build-Inspect([Hashtable] $Platform) {
3856
3870
$InstallPath = " $ ( Get-PlatformRoot $Platform.OS ) \Developer\Library\$ ( Get-ModuleTriple $Platform ) "
3857
3871
}
3858
3872
3859
- $SDKROOT = Get-SwiftSDK $Platform.OS
3873
+ $SDKROOT = Get-SwiftSDK - OS $Platform.OS - Identifier $Platform .DefaultSDK
3860
3874
3861
3875
Build-CMakeProject `
3862
3876
- Src $SourceCache \swift\tools\swift- inspect `
0 commit comments