Skip to content

Commit 0d699a6

Browse files
committed
build.ps1: shuffle build order
Build the complete toolchain before we build the SDK. This delays a certain class of errors, however, the resulting build order is much easier to reason about.
1 parent 50384e7 commit 0d699a6

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

utils/build.ps1

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4206,23 +4206,19 @@ if (-not $SkipBuild) {
42064206
Invoke-BuildStep Build-IndexStoreDB $HostPlatform
42074207
Invoke-BuildStep Build-SourceKitLSP $HostPlatform
42084208
Invoke-BuildStep Build-Inspect $HostPlatform
4209-
}
42104209

4211-
Install-HostToolchain
4210+
Install-HostToolchain
42124211

4213-
if (-not $SkipBuild) {
42144212
Invoke-BuildStep Build-mimalloc $HostPlatform
4215-
}
42164213

4217-
if (-not $SkipBuild -and $IncludeNoAsserts) {
4218-
Build-NoAssertsToolchain
4219-
}
4214+
if ($IncludeNoAsserts) {
4215+
Build-NoAssertsToolchain
4216+
}
42204217

4221-
if (-not $SkipBuild -and -not $IsCrossCompiling) {
4222-
Invoke-BuildStep Build-DocC $HostPlatform
4223-
}
4218+
if (-not $IsCrossCompiling) {
4219+
Invoke-BuildStep Build-DocC $HostPlatform
4220+
}
42244221

4225-
if (-not $SkipBuild) {
42264222
Invoke-BuildStep Patch-mimalloc $HostPlatform
42274223
}
42284224

0 commit comments

Comments
 (0)