Skip to content

Commit c80901b

Browse files
authored
Merge pull request #69651 from compnerd/shaving
build: tweak the Windows build to build against the internal swift-syntax
2 parents f4a005f + f7cd9ab commit c80901b

File tree

1 file changed

+2
-17
lines changed

1 file changed

+2
-17
lines changed

utils/build.ps1

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1481,30 +1481,17 @@ function Build-IndexStoreDB($Arch) {
14811481
}
14821482
}
14831483

1484-
function Build-Syntax($Arch) {
1485-
Build-CMakeProject `
1486-
-Src $SourceCache\swift-syntax `
1487-
-Bin $BinaryCache\14 `
1488-
-InstallTo "$($Arch.ToolchainInstallRoot)\usr" `
1489-
-Arch $Arch `
1490-
-UseBuiltCompilers Swift `
1491-
-SwiftSDK $SDKInstallRoot `
1492-
-BuildTargets default `
1493-
-Defines @{
1494-
BUILD_SHARED_LIBS = "NO";
1495-
}
1496-
}
1497-
14981484
function Build-SourceKitLSP($Arch) {
14991485
Build-CMakeProject `
15001486
-Src $SourceCache\sourcekit-lsp `
1501-
-Bin $BinaryCache\15 `
1487+
-Bin $BinaryCache\14 `
15021488
-InstallTo "$($Arch.ToolchainInstallRoot)\usr" `
15031489
-Arch $Arch `
15041490
-UseBuiltCompilers C,Swift `
15051491
-SwiftSDK $SDKInstallRoot `
15061492
-BuildTargets default `
15071493
-Defines @{
1494+
SwiftSyntax_DIR = "$BinaryCache\1\cmake\modules";
15081495
SwiftSystem_DIR = "$BinaryCache\2\cmake\modules";
15091496
TSC_DIR = "$BinaryCache\3\cmake\modules";
15101497
LLBuild_DIR = "$BinaryCache\4\cmake\modules";
@@ -1513,7 +1500,6 @@ function Build-SourceKitLSP($Arch) {
15131500
SwiftCollections_DIR = "$BinaryCache\9\cmake\modules";
15141501
SwiftPM_DIR = "$BinaryCache\12\cmake\modules";
15151502
IndexStoreDB_DIR = "$BinaryCache\13\cmake\modules";
1516-
SwiftSyntax_DIR = "$BinaryCache\14\cmake\modules";
15171503
}
15181504
}
15191505

@@ -1668,7 +1654,6 @@ if (-not $SkipBuild) {
16681654
Invoke-BuildStep Build-Certificates $HostArch
16691655
Invoke-BuildStep Build-PackageManager $HostArch
16701656
Invoke-BuildStep Build-IndexStoreDB $HostArch
1671-
Invoke-BuildStep Build-Syntax $HostArch
16721657
Invoke-BuildStep Build-SourceKitLSP $HostArch
16731658
}
16741659

0 commit comments

Comments
 (0)