@@ -35,6 +35,9 @@ An array of architectures for which the Swift SDK should be built.
35
35
The product version to be used when building the installer.
36
36
Supports semantic version strings.
37
37
38
+ . PARAMETER SkipBuild
39
+ If set, does not run the build phase.
40
+
38
41
. PARAMETER SkipRedistInstall
39
42
If set, does not create S:\Program Files to mimic an installed redistributable.
40
43
69
72
[string ] $BuildType = " Release" ,
70
73
[string []] $SDKs = @ (" X64" , " X86" , " Arm64" ),
71
74
[string ] $ProductVersion = " 0.0.0" ,
75
+ [switch ] $SkipBuild = $false ,
72
76
[switch ] $SkipRedistInstall = $false ,
73
77
[switch ] $SkipPackaging = $false ,
74
78
[bool ] $DefaultsLLD = $true ,
@@ -1359,22 +1363,29 @@ function Build-Installer()
1359
1363
1360
1364
# -------------------------------------------------------------------
1361
1365
1362
- Build-BuildTools $HostArch
1363
- Build-Compilers $HostArch
1366
+ if (-not $SkipBuild )
1367
+ {
1368
+ Build-BuildTools $HostArch
1369
+ Build-Compilers $HostArch
1370
+ }
1371
+
1364
1372
1365
1373
foreach ($Arch in $SDKArchs )
1366
1374
{
1367
- Build-ZLib $Arch
1368
- Build-XML2 $Arch
1369
- Build-CURL $Arch
1370
- Build-ICU $Arch
1371
- Build-LLVM $Arch
1372
-
1373
- # Build platform: SDK, Redist and XCTest
1374
- Build-Runtime $Arch
1375
- Build-Dispatch $Arch
1376
- Build-Foundation $Arch
1377
- Build-XCTest $Arch
1375
+ if (-not $SkipBuild )
1376
+ {
1377
+ Build-ZLib $Arch
1378
+ Build-XML2 $Arch
1379
+ Build-CURL $Arch
1380
+ Build-ICU $Arch
1381
+ Build-LLVM $Arch
1382
+
1383
+ # Build platform: SDK, Redist and XCTest
1384
+ Build-Runtime $Arch
1385
+ Build-Dispatch $Arch
1386
+ Build-Foundation $Arch
1387
+ Build-XCTest $Arch
1388
+ }
1378
1389
1379
1390
if (-not $SkipRedistInstall )
1380
1391
{
@@ -1391,21 +1402,24 @@ if (-not $ToBatch)
1391
1402
}
1392
1403
}
1393
1404
1394
- Build-SQLite $HostArch
1395
- Build-System $HostArch
1396
- Build-ToolsSupportCore $HostArch
1397
- Build-LLBuild $HostArch
1398
- Build-Yams $HostArch
1399
- Build-ArgumentParser $HostArch
1400
- Build-Driver $HostArch
1401
- Build-Crypto $HostArch
1402
- Build-Collections $HostArch
1403
- Build-ASN1 $HostArch
1404
- Build-Certificates $HostArch
1405
- Build-PackageManager $HostArch
1406
- Build-IndexStoreDB $HostArch
1407
- Build-Syntax $HostArch
1408
- Build-SourceKitLSP $HostArch
1405
+ if (-not $SkipBuild )
1406
+ {
1407
+ Build-SQLite $HostArch
1408
+ Build-System $HostArch
1409
+ Build-ToolsSupportCore $HostArch
1410
+ Build-LLBuild $HostArch
1411
+ Build-Yams $HostArch
1412
+ Build-ArgumentParser $HostArch
1413
+ Build-Driver $HostArch
1414
+ Build-Crypto $HostArch
1415
+ Build-Collections $HostArch
1416
+ Build-ASN1 $HostArch
1417
+ Build-Certificates $HostArch
1418
+ Build-PackageManager $HostArch
1419
+ Build-IndexStoreDB $HostArch
1420
+ Build-Syntax $HostArch
1421
+ Build-SourceKitLSP $HostArch
1422
+ }
1409
1423
1410
1424
Install-HostToolchain
1411
1425
0 commit comments