@@ -54,10 +54,6 @@ The toolchain snapshot to build the early components with.
54
54
. PARAMETER PinnedSHA256
55
55
The SHA256 for the pinned toolchain.
56
56
57
- . PARAMETER PinnedToolchainVariant
58
- The toolchain variant to use while building the toolchain. Defaults to
59
- `Asserts`.
60
-
61
57
. PARAMETER AndroidNDKVersion
62
58
The version number of the Android NDK to be used.
63
59
@@ -132,8 +128,6 @@ param
132
128
[ValidatePattern (" ^([A-Fa-f0-9]{64}|)$" )]
133
129
[string ] $PinnedSHA256 = " " ,
134
130
[string ] $PinnedVersion = " " ,
135
- [ValidateSet (" Asserts" , " NoAsserts" )]
136
- [string ] $PinnedToolchainVariant = " Asserts" ,
137
131
[ValidatePattern (' ^\d+(\.\d+)*$' )]
138
132
[string ] $PythonVersion = " 3.9.10" ,
139
133
[ValidatePattern (" ^r(?:[1-9]|[1-9][0-9])(?:[a-z])?$" )]
@@ -622,9 +616,9 @@ function Get-InstallDir([Hashtable] $Platform) {
622
616
623
617
# For dev productivity, install the host toolchain directly using CMake.
624
618
# This allows iterating on the toolchain using ninja builds.
625
- $HostPlatform.ToolchainInstallRoot = " $ ( Get-InstallDir $HostPlatform ) \Toolchains\$ProductVersion +$PinnedToolchainVariant "
619
+ $HostPlatform.ToolchainInstallRoot = " $ ( Get-InstallDir $HostPlatform ) \Toolchains\$ProductVersion +Asserts "
626
620
$HostPlatform.NoAssertsToolchainInstallRoot = " $ ( Get-InstallDir $HostPlatform ) \Toolchains\$ProductVersion +NoAsserts"
627
- $BuildPlatform.ToolchainInstallRoot = " $ ( Get-InstallDir $BuildPlatform ) \Toolchains\$ProductVersion +$PinnedToolchainVariant "
621
+ $BuildPlatform.ToolchainInstallRoot = " $ ( Get-InstallDir $BuildPlatform ) \Toolchains\$ProductVersion +Asserts "
628
622
$BuildPlatform.NoAssertsToolchainInstallRoot = " $ ( Get-InstallDir $BuildPlatform ) \Toolchains\$ProductVersion +NoAsserts"
629
623
630
624
# Build functions
@@ -1195,15 +1189,15 @@ function Get-PinnedToolchainToolsDir() {
1195
1189
}
1196
1190
}
1197
1191
1198
- $VariantToolchainPath = [IO.Path ]::Combine($ToolchainsRoot , " $ ( Get-PinnedToolchainVersion ) +$PinnedToolchainVariant " , " usr" , " bin" )
1192
+ $VariantToolchainPath = [IO.Path ]::Combine($ToolchainsRoot , " $ ( Get-PinnedToolchainVersion ) +Asserts " , " usr" , " bin" )
1199
1193
1200
1194
if (Test-Path $VariantToolchainPath ) {
1201
1195
return $VariantToolchainPath
1202
1196
}
1203
1197
1204
1198
return [IO.Path ]::Combine(" $BinaryCache \" , " toolchains" , $PinnedToolchain ,
1205
1199
" Library" , " Developer" , " Toolchains" ,
1206
- " unknown-$PinnedToolchainVariant -development.xctoolchain" , " usr" , " bin" )
1200
+ " unknown-Asserts -development.xctoolchain" , " usr" , " bin" )
1207
1201
}
1208
1202
1209
1203
function Get-PinnedToolchainSDK () {
@@ -1710,7 +1704,7 @@ function Build-CMark([Hashtable] $Platform) {
1710
1704
Build-CMakeProject `
1711
1705
- Src $SourceCache \cmark `
1712
1706
- Bin (Get-CMarkBinaryCache $Platform ) `
1713
- - InstallTo " $ ( Get-InstallDir $Platform ) \Toolchains\$ProductVersion +$PinnedToolchainVariant \usr" `
1707
+ - InstallTo " $ ( Get-InstallDir $Platform ) \Toolchains\$ProductVersion +Asserts \usr" `
1714
1708
- Platform $Platform `
1715
1709
- Defines @ {
1716
1710
BUILD_SHARED_LIBS = " YES" ;
@@ -1753,7 +1747,7 @@ function Build-BuildTools([Hashtable] $Platform) {
1753
1747
SWIFT_INCLUDE_APINOTES = " NO" ;
1754
1748
SWIFT_INCLUDE_DOCS = " NO" ;
1755
1749
SWIFT_INCLUDE_TESTS = " NO" ;
1756
- " cmark-gfm_DIR" = " $ ( Get-InstallDir $Platform ) \Toolchains\$ProductVersion +$PinnedToolchainVariant \usr\lib\cmake" ;
1750
+ " cmark-gfm_DIR" = " $ ( Get-InstallDir $Platform ) \Toolchains\$ProductVersion +Asserts \usr\lib\cmake" ;
1757
1751
}
1758
1752
}
1759
1753
@@ -3255,8 +3249,8 @@ function Test-PackageManager() {
3255
3249
- Src $SrcDir `
3256
3250
- Bin " $BinaryCache \$ ( $HostPlatform.Triple ) \PackageManagerTests" `
3257
3251
- Platform $HostPlatform `
3258
- - Xcc " -I$ ( Get-InstallDir $Platform ) \Toolchains\$ProductVersion +$PinnedToolchainVariant \usr\include" `
3259
- - Xlinker " -L$ ( Get-InstallDir $Platform ) \Toolchains\$ProductVersion +$PinnedToolchainVariant \usr\lib"
3252
+ - Xcc " -I$ ( Get-InstallDir $Platform ) \Toolchains\$ProductVersion +Asserts \usr\include" `
3253
+ - Xlinker " -L$ ( Get-InstallDir $Platform ) \Toolchains\$ProductVersion +Asserts \usr\lib"
3260
3254
}
3261
3255
3262
3256
function Build-Installer ([Hashtable ] $Platform ) {
@@ -3338,7 +3332,7 @@ if (-not $SkipBuild) {
3338
3332
Invoke-BuildStep Build-BuildTools $BuildPlatform
3339
3333
if ($IsCrossCompiling ) {
3340
3334
Invoke-BuildStep Build-XML2 $BuildPlatform
3341
- Invoke-BuildStep Build-Compilers $BuildPlatform - Variant $PinnedToolchainVariant
3335
+ Invoke-BuildStep Build-Compilers $BuildPlatform - Variant " Asserts "
3342
3336
}
3343
3337
if ($IncludeDS2 ) {
3344
3338
Invoke-BuildStep Build-RegsGen2 $BuildPlatform
@@ -3446,7 +3440,7 @@ if (-not $IsCrossCompiling) {
3446
3440
" -TestLLVM" = $Test -contains " llvm" ;
3447
3441
" -TestSwift" = $Test -contains " swift" ;
3448
3442
}
3449
- Invoke-BuildStep Test-Compilers $HostPlatform $PinnedToolchainVariant $Tests
3443
+ Invoke-BuildStep Test-Compilers $HostPlatform " Asserts " $Tests
3450
3444
}
3451
3445
3452
3446
# FIXME(jeffdav): Invoke-BuildStep needs a platform dictionary, even though the Test-
0 commit comments