Skip to content

Commit 52ada07

Browse files
authored
build_llvm_release.bat: add tarball export to x64 release (llvm#79840)
Like linux releases, export a tar.xz files containing most llvm tools, including non toolchain utilities, llvm-config, llvm-link and others. We do this by reconfiguring cmake one last time at the last step, running the install target so we do not need to recompile anything. Fix llvm#51192 Fix llvm#53052
1 parent 71d47a0 commit 52ada07

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

llvm/utils/release/build_llvm_release.bat

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,16 @@ ninja check-sanitizer || ninja check-sanitizer || ninja check-sanitizer || exit
287287
ninja check-clang-tools || ninja check-clang-tools || ninja check-clang-tools || exit /b 1
288288
ninja check-clangd || ninja check-clangd || ninja check-clangd || exit /b 1
289289
ninja package || exit /b 1
290+
291+
:: generate tarball with install toolchain only off
292+
set filename=clang+llvm-%version%-x86_64-pc-windows-msvc
293+
cmake -GNinja %cmake_flags% %cmake_profile_flags% -DLLVM_INSTALL_TOOLCHAIN_ONLY=OFF ^
294+
-DCMAKE_INSTALL_PREFIX=%build_dir%/%filename% ..\llvm-project\llvm || exit /b 1
295+
ninja install || exit /b 1
296+
:: check llvm_config is present & returns something
297+
%build_dir%/%filename%/bin/llvm-config.exe --bindir || exit /b 1
290298
cd ..
299+
7z a -ttar -so %filename%.tar %filename% | 7z a -txz -si %filename%.tar.xz
291300

292301
exit /b 0
293302
::==============================================================================

0 commit comments

Comments
 (0)