Skip to content

Commit f6e651a

Browse files
committed
[windows] Use the monorepo in the Windows build script for CI.
Clone the monorepo, in the swift/master branch (since that seems to be the one used by swift master branch), and create links for the different parts of the LLVM project in the first level.
1 parent 7b5dfd6 commit f6e651a

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

utils/build-windows.bat

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,13 @@ setlocal enableextensions enabledelayedexpansion
7979

8080
git config --global core.autocrlf false
8181
git clone --depth 1 --single-branch https://github.com/apple/swift-cmark cmark %exitOnError%
82-
git clone --depth 1 --single-branch https://github.com/apple/swift-clang clang %exitOnError%
83-
git clone --depth 1 --single-branch https://github.com/apple/swift-llvm llvm %exitOnError%
84-
git clone --depth 1 --single-branch https://github.com/apple/swift-lldb lldb %exitOnError%
85-
git clone --depth 1 --single-branch https://github.com/apple/swift-compiler-rt compiler-rt %exitOnError%
82+
git clone --depth 1 --single-branch --branch swift/master https://github.com/apple/llvm-project llvm-project %exitOnError%
83+
mklink /D "%source_root%\clang" "%source_root%\llvm-project\clang"
84+
mklink /D "%source_root%\llvm" "%source_root%\llvm-project\llvm"
85+
mklink /D "%source_root%\lldb" "%source_root%\llvm-project\lldb"
86+
mklink /D "%source_root%\compiler-rt" "%source_root%\llvm-project\compiler-rt"
87+
mklink /D "%source_root%\libcxx" "%source_root%\llvm-project\libcxx"
88+
mklink /D "%source_root%\clang-tools-extra" "%source_root%\llvm-project\clang-tools-extra"
8689
git clone --depth 1 --single-branch https://github.com/apple/swift-corelibs-libdispatch %exitOnError%
8790

8891
goto :eof

0 commit comments

Comments
 (0)