Skip to content

Commit 65e1c52

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 f7f10f5 commit 65e1c52

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
@@ -4080,23 +4080,19 @@ if (-not $SkipBuild) {
40804080
Invoke-BuildStep Build-IndexStoreDB $HostPlatform
40814081
Invoke-BuildStep Build-SourceKitLSP $HostPlatform
40824082
Invoke-BuildStep Build-Inspect $HostPlatform
4083-
}
40844083

4085-
Install-HostToolchain
4084+
Install-HostToolchain
40864085

4087-
if (-not $SkipBuild) {
40884086
Invoke-BuildStep Build-mimalloc $HostPlatform
4089-
}
40904087

4091-
if (-not $SkipBuild -and $IncludeNoAsserts) {
4092-
Build-NoAssertsToolchain
4093-
}
4088+
if ($IncludeNoAsserts) {
4089+
Build-NoAssertsToolchain
4090+
}
40944091

4095-
if (-not $SkipBuild -and -not $IsCrossCompiling) {
4096-
Invoke-BuildStep Build-DocC $HostPlatform
4097-
}
4092+
if (-not $IsCrossCompiling) {
4093+
Invoke-BuildStep Build-DocC $HostPlatform
4094+
}
40984095

4099-
if (-not $SkipBuild) {
41004096
Invoke-BuildStep Patch-mimalloc $HostPlatform
41014097
}
41024098

0 commit comments

Comments
 (0)