Skip to content

Commit 166ea77

Browse files
committed
Update build.ps1
Use the pinned toolchain's clang to build libdispatch and SourceKit rather than trying to use the just built clang to build the components. This should allow us to simplify the build and simplify cross-compilation, while making the build system more robust.
1 parent 2e4a027 commit 166ea77

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

build.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -848,6 +848,7 @@ function Build-Compilers($Arch, [switch]$Test = $false) {
848848
LLVM_TABLEGEN = "$BinaryCache\0\bin\llvm-tblgen.exe";
849849
LLVM_USE_HOST_TOOLS = "NO";
850850
SWIFT_BUILD_SWIFT_SYNTAX = "YES";
851+
SWIFT_CLANG_LOCATION = "$BinaryCache\toolchains\$PinnedToolchain\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain\usr\bin";
851852
SWIFT_ENABLE_EXPERIMENTAL_CONCURRENCY = "YES";
852853
SWIFT_ENABLE_EXPERIMENTAL_CXX_INTEROP = "YES";
853854
SWIFT_ENABLE_EXPERIMENTAL_DIFFERENTIABLE_PROGRAMMING = "YES";

0 commit comments

Comments
 (0)