Skip to content

Commit 7e834c3

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 d8e4169 commit 7e834c3

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
@@ -4214,23 +4214,19 @@ if (-not $SkipBuild) {
42144214
Invoke-BuildStep Build-IndexStoreDB $HostPlatform
42154215
Invoke-BuildStep Build-SourceKitLSP $HostPlatform
42164216
Invoke-BuildStep Build-Inspect $HostPlatform
4217-
}
42184217

4219-
Install-HostToolchain
4218+
Install-HostToolchain
42204219

4221-
if (-not $SkipBuild) {
42224220
Invoke-BuildStep Build-mimalloc $HostPlatform
4223-
}
42244221

4225-
if (-not $SkipBuild -and $IncludeNoAsserts) {
4226-
Build-NoAssertsToolchain
4227-
}
4222+
if ($IncludeNoAsserts) {
4223+
Build-NoAssertsToolchain
4224+
}
42284225

4229-
if (-not $SkipBuild -and -not $IsCrossCompiling) {
4230-
Invoke-BuildStep Build-DocC $HostPlatform
4231-
}
4226+
if (-not $IsCrossCompiling) {
4227+
Invoke-BuildStep Build-DocC $HostPlatform
4228+
}
42324229

4233-
if (-not $SkipBuild) {
42344230
Invoke-BuildStep Patch-mimalloc $HostPlatform
42354231
}
42364232

0 commit comments

Comments
 (0)