Skip to content

Commit c96ddd7

Browse files
Update the Windows packaging script.
As discussed on: https://discourse.llvm.org/t/build-llvm-release-bat-script-options/63146/6 - In stage1 use the following binaries from stage0: lld-link, llvm-lib and llvm-windres Reviewed By: hans Differential Revision: https://reviews.llvm.org/D130067
1 parent b8a1f00 commit c96ddd7

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

llvm/utils/release/build_llvm_release.bat

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,10 @@ REM with forward slash.
160160
set all_cmake_flags=^
161161
%cmake_flags% ^
162162
-DCMAKE_C_COMPILER=%stage0_bin_dir%/clang-cl.exe ^
163-
-DCMAKE_CXX_COMPILER=%stage0_bin_dir%/clang-cl.exe
163+
-DCMAKE_CXX_COMPILER=%stage0_bin_dir%/clang-cl.exe ^
164+
-DCMAKE_LINKER=%stage0_bin_dir%/lld-link.exe ^
165+
-DCMAKE_AR=%stage0_bin_dir%/llvm-lib.exe ^
166+
-DCMAKE_RC=%stage0_bin_dir%/llvm-windres.exe
164167
set cmake_flags=%all_cmake_flags:\=/%
165168

166169
mkdir build32
@@ -227,7 +230,10 @@ REM with forward slash.
227230
set all_cmake_flags=^
228231
%cmake_flags% ^
229232
-DCMAKE_C_COMPILER=%stage0_bin_dir%/clang-cl.exe ^
230-
-DCMAKE_CXX_COMPILER=%stage0_bin_dir%/clang-cl.exe
233+
-DCMAKE_CXX_COMPILER=%stage0_bin_dir%/clang-cl.exe ^
234+
-DCMAKE_LINKER=%stage0_bin_dir%/lld-link.exe ^
235+
-DCMAKE_AR=%stage0_bin_dir%/llvm-lib.exe ^
236+
-DCMAKE_RC=%stage0_bin_dir%/llvm-windres.exe
231237
set cmake_flags=%all_cmake_flags:\=/%
232238

233239
mkdir build64

0 commit comments

Comments
 (0)