diff options
author | BenoƮt Amiaux <benoit.amiaux@gmail.com> | 2024-02-23 14:49:57 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-23 14:49:57 +0100 |
commit | 52ada07ef5df2829e90ca2dd48305465a55e8121 (patch) | |
tree | 006c5d704fe40e9cd0d71381dbdd03a39f38dd4c /llvm | |
parent | 71d47a0b00e9f48dc740556d7f452ffadf308731 (diff) | |
download | llvm-52ada07ef5df2829e90ca2dd48305465a55e8121.zip llvm-52ada07ef5df2829e90ca2dd48305465a55e8121.tar.gz llvm-52ada07ef5df2829e90ca2dd48305465a55e8121.tar.bz2 |
build_llvm_release.bat: add tarball export to x64 release (#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 #51192
Fix #53052
Diffstat (limited to 'llvm')
-rwxr-xr-x | llvm/utils/release/build_llvm_release.bat | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/llvm/utils/release/build_llvm_release.bat b/llvm/utils/release/build_llvm_release.bat index 67bb22d..dc63fda 100755 --- a/llvm/utils/release/build_llvm_release.bat +++ b/llvm/utils/release/build_llvm_release.bat @@ -287,7 +287,16 @@ ninja check-sanitizer || ninja check-sanitizer || ninja check-sanitizer || exit ninja check-clang-tools || ninja check-clang-tools || ninja check-clang-tools || exit /b 1
ninja check-clangd || ninja check-clangd || ninja check-clangd || exit /b 1
ninja package || exit /b 1
+
+:: generate tarball with install toolchain only off
+set filename=clang+llvm-%version%-x86_64-pc-windows-msvc
+cmake -GNinja %cmake_flags% %cmake_profile_flags% -DLLVM_INSTALL_TOOLCHAIN_ONLY=OFF ^
+ -DCMAKE_INSTALL_PREFIX=%build_dir%/%filename% ..\llvm-project\llvm || exit /b 1
+ninja install || exit /b 1
+:: check llvm_config is present & returns something
+%build_dir%/%filename%/bin/llvm-config.exe --bindir || exit /b 1
cd ..
+7z a -ttar -so %filename%.tar %filename% | 7z a -txz -si %filename%.tar.xz
exit /b 0
::==============================================================================
|