@@ -756,6 +756,8 @@ function Invoke-BuildStep {
756
756
enum Project {
757
757
BuildTools
758
758
RegsGen2
759
+ BootstrapFoundationMacros
760
+ BootstrapTestingMacros
759
761
760
762
CDispatch
761
763
Compilers
@@ -2975,7 +2977,7 @@ function Build-Foundation {
2975
2977
_SwiftFoundation_SourceDIR = " $SourceCache \swift-foundation" ;
2976
2978
_SwiftFoundationICU_SourceDIR = " $SourceCache \swift-foundation-icu" ;
2977
2979
_SwiftCollections_SourceDIR = " $SourceCache \swift-collections" ;
2978
- SwiftFoundation_MACRO = " $ ( Get-ProjectBinaryCache $BuildPlatform FoundationMacros ) \bin"
2980
+ SwiftFoundation_MACRO = " $ ( Get-ProjectBinaryCache $BuildPlatform BootstrapFoundationMacros ) \bin"
2979
2981
}
2980
2982
}
2981
2983
@@ -3084,7 +3086,7 @@ function Build-Testing([Hashtable] $Platform) {
3084
3086
CMAKE_INSTALL_BINDIR = $Platform.BinaryDir ;
3085
3087
dispatch_DIR = (Get-ProjectCMakeModules $Platform Dispatch);
3086
3088
Foundation_DIR = (Get-ProjectCMakeModules $Platform DynamicFoundation);
3087
- SwiftTesting_MACRO = " $ ( Get-ProjectBinaryCache $BuildPlatform TestingMacros ) \TestingMacros.dll" ;
3089
+ SwiftTesting_MACRO = " $ ( Get-ProjectBinaryCache $BuildPlatform BootstrapTestingMacros ) \TestingMacros.dll" ;
3088
3090
SwiftTesting_INSTALL_NESTED_SUBDIR = " YES" ;
3089
3091
}
3090
3092
}
@@ -3135,7 +3137,7 @@ function Install-SDK([Hashtable[]] $Platforms, [OS] $OS = $Platforms[0].OS, [str
3135
3137
}
3136
3138
}
3137
3139
3138
- function Build-SDK ([Hashtable ] $Platform , [ switch ] $IncludeMacros = $false ) {
3140
+ function Build-SDK ([Hashtable ] $Platform ) {
3139
3141
if ($IncludeDS2 ) {
3140
3142
Invoke-BuildStep Build-DS2 $Platform
3141
3143
}
@@ -3149,10 +3151,6 @@ function Build-SDK([Hashtable] $Platform, [switch] $IncludeMacros = $false) {
3149
3151
# Libraries
3150
3152
Invoke-BuildStep Build-Runtime $Platform
3151
3153
Invoke-BuildStep Build-Dispatch $Platform
3152
- if ($IncludeMacros ) {
3153
- Invoke-BuildStep Build-FoundationMacros $Platform
3154
- Invoke-BuildStep Build-TestingMacros $Platform
3155
- }
3156
3154
Invoke-BuildStep Build-Foundation $Platform
3157
3155
Invoke-BuildStep Build-Sanitizers $Platform
3158
3156
Invoke-BuildStep Build-XCTest $Platform
@@ -3229,7 +3227,7 @@ function Build-ExperimentalSDK([Hashtable] $Platform) {
3229
3227
_SwiftFoundation_SourceDIR = " $SourceCache \swift-foundation" ;
3230
3228
_SwiftFoundationICU_SourceDIR = " $SourceCache \swift-foundation-icu" ;
3231
3229
_SwiftCollections_SourceDIR = " $SourceCache \swift-collections" ;
3232
- SwiftFoundation_MACRO = " $ ( Get-ProjectBinaryCache $BuildPlatform FoundationMacros ) \bin"
3230
+ SwiftFoundation_MACRO = " $ ( Get-ProjectBinaryCache $BuildPlatform BootstrapFoundationMacros ) \bin"
3233
3231
}
3234
3232
3235
3233
Build-CMakeProject `
@@ -3261,7 +3259,7 @@ function Build-ExperimentalSDK([Hashtable] $Platform) {
3261
3259
_SwiftFoundation_SourceDIR = " $SourceCache \swift-foundation" ;
3262
3260
_SwiftFoundationICU_SourceDIR = " $SourceCache \swift-foundation-icu" ;
3263
3261
_SwiftCollections_SourceDIR = " $SourceCache \swift-collections" ;
3264
- SwiftFoundation_MACRO = " $ ( Get-ProjectBinaryCache $BuildPlatform FoundationMacros ) \bin"
3262
+ SwiftFoundation_MACRO = " $ ( Get-ProjectBinaryCache $BuildPlatform BootstrapFoundationMacros ) \bin"
3265
3263
}
3266
3264
}
3267
3265
@@ -3959,7 +3957,28 @@ if (-not $SkipBuild) {
3959
3957
Invoke-BuildStep Build-CDispatch $HostPlatform
3960
3958
Invoke-BuildStep Build-Compilers $HostPlatform - Variant " Asserts"
3961
3959
3962
- Invoke-BuildStep Build-SDK $BuildPlatform - IncludeMacros
3960
+ # Build Macros
3961
+ Build-CMakeProject `
3962
+ - Src $SourceCache \swift- foundation\Sources\FoundationMacros `
3963
+ - Bin (Get-ProjectBinaryCache $BuildPlatform BootstrapFoundationMacros) `
3964
+ - BuildTargets default `
3965
+ - Platform $BuildPlatform `
3966
+ - UsePinnedCompilers Swift `
3967
+ - SwiftSDK (Get-PinnedToolchainSDK - OS $BuildPlatform.OS ) `
3968
+ - Defines @ {
3969
+ SwiftSyntax_DIR = (Get-ProjectCMakeModules $BuildPlatform Compilers);
3970
+ }
3971
+
3972
+ Build-CMakeProject `
3973
+ - Src $SourceCache \swift- testing\Sources\TestingMacros `
3974
+ - Bin (Get-ProjectBinaryCache $BuildPlatform BootstrapTestingMacros) `
3975
+ - BuildTargets default `
3976
+ - Platform $BuildPlatform `
3977
+ - UsePinnedCompilers Swift `
3978
+ - SwiftSDK (Get-PinnedToolchainSDK - OS $BuildPlatform.OS ) `
3979
+ - Defines @ {
3980
+ SwiftSyntax_DIR = (Get-ProjectCMakeModules $BuildPlatform Compilers);
3981
+ }
3963
3982
3964
3983
foreach ($SDK in $WindowsSDKVersions ) {
3965
3984
switch ($SDK ) {
0 commit comments