File tree Expand file tree Collapse file tree 1 file changed +21
-18
lines changed Expand file tree Collapse file tree 1 file changed +21
-18
lines changed Original file line number Diff line number Diff line change @@ -2068,25 +2068,28 @@ function Write-SDKSettingsPlist([Platform]$Platform, $Arch) {
20682068}
20692069
20702070function Build-Dispatch ([Platform ]$Platform , $Arch , [switch ]$Test = $false ) {
2071- if ($Test ) {
2072- $Targets = @ (" default" , " ExperimentalTest" )
2073- $InstallPath = " "
2074- } else {
2075- $Targets = @ (" install" )
2076- $InstallPath = " $ ( $Arch.SDKInstallRoot ) \usr"
2077- }
2078-
2079- Build-CMakeProject `
2080- - Src $SourceCache \swift- corelibs- libdispatch `
2081- - Bin (Get-TargetProjectBinaryCache $Arch Dispatch) `
2082- - InstallTo $InstallPath `
2083- - Arch $Arch `
2084- - Platform $Platform `
2085- - BuildTargets $Targets `
2086- - UseBuiltCompilers C, CXX, Swift `
2087- - Defines @ {
2088- ENABLE_SWIFT = " YES" ;
2071+ Isolate- EnvVars {
2072+ if ($Test ) {
2073+ $Targets = @ (" default" , " ExperimentalTest" )
2074+ $InstallPath = " "
2075+ $env: CTEST_OUTPUT_ON_FAILURE = " YES"
2076+ } else {
2077+ $Targets = @ (" install" )
2078+ $InstallPath = " $ ( $Arch.SDKInstallRoot ) \usr"
20892079 }
2080+
2081+ Build-CMakeProject `
2082+ - Src $SourceCache \swift- corelibs- libdispatch `
2083+ - Bin (Get-TargetProjectBinaryCache $Arch Dispatch) `
2084+ - InstallTo $InstallPath `
2085+ - Arch $Arch `
2086+ - Platform $Platform `
2087+ - BuildTargets $Targets `
2088+ - UseBuiltCompilers C, CXX, Swift `
2089+ - Defines @ {
2090+ ENABLE_SWIFT = " YES" ;
2091+ }
2092+ }
20902093}
20912094
20922095function Build-Foundation ([Platform ]$Platform , $Arch , [switch ]$Test = $false ) {
You can’t perform that action at this time.
0 commit comments