@@ -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
@@ -2936,7 +2938,7 @@ function Build-Foundation([Hashtable] $Platform) {
2936
2938
_SwiftFoundation_SourceDIR = " $SourceCache \swift-foundation" ;
2937
2939
_SwiftFoundationICU_SourceDIR = " $SourceCache \swift-foundation-icu" ;
2938
2940
_SwiftCollections_SourceDIR = " $SourceCache \swift-collections" ;
2939
- SwiftFoundation_MACRO = " $ ( Get-ProjectBinaryCache $BuildPlatform FoundationMacros ) \bin"
2941
+ SwiftFoundation_MACRO = " $ ( Get-ProjectBinaryCache $BuildPlatform BootstrapFoundationMacros ) \bin"
2940
2942
}
2941
2943
}
2942
2944
@@ -3045,7 +3047,7 @@ function Build-Testing([Hashtable] $Platform) {
3045
3047
CMAKE_INSTALL_BINDIR = $Platform.BinaryDir ;
3046
3048
dispatch_DIR = (Get-ProjectCMakeModules $Platform Dispatch);
3047
3049
Foundation_DIR = (Get-ProjectCMakeModules $Platform DynamicFoundation);
3048
- SwiftTesting_MACRO = " $ ( Get-ProjectBinaryCache $BuildPlatform TestingMacros ) \TestingMacros.dll" ;
3050
+ SwiftTesting_MACRO = " $ ( Get-ProjectBinaryCache $BuildPlatform BootstrapTestingMacros ) \TestingMacros.dll" ;
3049
3051
SwiftTesting_INSTALL_NESTED_SUBDIR = " YES" ;
3050
3052
}
3051
3053
}
@@ -3096,7 +3098,7 @@ function Install-SDK([Hashtable[]] $Platforms, [OS] $OS = $Platforms[0].OS, [str
3096
3098
}
3097
3099
}
3098
3100
3099
- function Build-SDK ([Hashtable ] $Platform , [ switch ] $IncludeMacros = $false ) {
3101
+ function Build-SDK ([Hashtable ] $Platform ) {
3100
3102
if ($IncludeDS2 ) {
3101
3103
Invoke-BuildStep Build-DS2 $Platform
3102
3104
}
@@ -3110,10 +3112,6 @@ function Build-SDK([Hashtable] $Platform, [switch] $IncludeMacros = $false) {
3110
3112
# Libraries
3111
3113
Invoke-BuildStep Build-Runtime $Platform
3112
3114
Invoke-BuildStep Build-Dispatch $Platform
3113
- if ($IncludeMacros ) {
3114
- Invoke-BuildStep Build-FoundationMacros $Platform
3115
- Invoke-BuildStep Build-TestingMacros $Platform
3116
- }
3117
3115
Invoke-BuildStep Build-Foundation $Platform
3118
3116
Invoke-BuildStep Build-Sanitizers $Platform
3119
3117
Invoke-BuildStep Build-XCTest $Platform
@@ -3190,7 +3188,7 @@ function Build-ExperimentalSDK([Hashtable] $Platform) {
3190
3188
_SwiftFoundation_SourceDIR = " $SourceCache \swift-foundation" ;
3191
3189
_SwiftFoundationICU_SourceDIR = " $SourceCache \swift-foundation-icu" ;
3192
3190
_SwiftCollections_SourceDIR = " $SourceCache \swift-collections" ;
3193
- SwiftFoundation_MACRO = " $ ( Get-ProjectBinaryCache $BuildPlatform FoundationMacros ) \bin"
3191
+ SwiftFoundation_MACRO = " $ ( Get-ProjectBinaryCache $BuildPlatform BootstrapFoundationMacros ) \bin"
3194
3192
}
3195
3193
3196
3194
Build-CMakeProject `
@@ -3222,7 +3220,7 @@ function Build-ExperimentalSDK([Hashtable] $Platform) {
3222
3220
_SwiftFoundation_SourceDIR = " $SourceCache \swift-foundation" ;
3223
3221
_SwiftFoundationICU_SourceDIR = " $SourceCache \swift-foundation-icu" ;
3224
3222
_SwiftCollections_SourceDIR = " $SourceCache \swift-collections" ;
3225
- SwiftFoundation_MACRO = " $ ( Get-ProjectBinaryCache $BuildPlatform FoundationMacros ) \bin"
3223
+ SwiftFoundation_MACRO = " $ ( Get-ProjectBinaryCache $BuildPlatform BootstrapFoundationMacros ) \bin"
3226
3224
}
3227
3225
}
3228
3226
@@ -3920,7 +3918,28 @@ if (-not $SkipBuild) {
3920
3918
Invoke-BuildStep Build-CDispatch $HostPlatform
3921
3919
Invoke-BuildStep Build-Compilers $HostPlatform - Variant " Asserts"
3922
3920
3923
- Invoke-BuildStep Build-SDK $BuildPlatform - IncludeMacros
3921
+ # Build Macros
3922
+ Build-CMakeProject `
3923
+ - Src $SourceCache \swift- foundation\Sources\FoundationMacros `
3924
+ - Bin (Get-ProjectBinaryCache $BuildPlatform BootstrapFoundationMacros) `
3925
+ - BuildTargets default `
3926
+ - Platform $BuildPlatform `
3927
+ - UsePinnedCompilers Swift `
3928
+ - SwiftSDK (Get-PinnedToolchainSDK - OS $BuildPlatform.OS ) `
3929
+ - Defines @ {
3930
+ SwiftSyntax_DIR = (Get-ProjectCMakeModules $BuildPlatform Compilers);
3931
+ }
3932
+
3933
+ Build-CMakeProject `
3934
+ - Src $SourceCache \swift- testing\Sources\TestingMacros `
3935
+ - Bin (Get-ProjectBinaryCache $BuildPlatform BootstrapTestingMacros) `
3936
+ - BuildTargets default `
3937
+ - Platform $BuildPlatform `
3938
+ - UsePinnedCompilers Swift `
3939
+ - SwiftSDK (Get-PinnedToolchainSDK - OS $BuildPlatform.OS ) `
3940
+ - Defines @ {
3941
+ SwiftSyntax_DIR = (Get-ProjectCMakeModules $BuildPlatform Compilers);
3942
+ }
3924
3943
3925
3944
foreach ($SDK in $WindowsSDKVersions ) {
3926
3945
switch ($SDK ) {
0 commit comments