[PATCH] D74896: build_llvm_package.bat: Produce zip files in addition to the installers
Hans Wennborg via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 25 03:21:31 PST 2020
This revision was automatically updated to reflect the committed changes.
Closed by commit rG4486aa03c5f4: build_llvm_package.bat: Produce zip files in addition to the installers (authored by hans).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D74896/new/
https://reviews.llvm.org/D74896
Files:
llvm/utils/release/build_llvm_package.bat
Index: llvm/utils/release/build_llvm_package.bat
===================================================================
--- llvm/utils/release/build_llvm_package.bat
+++ llvm/utils/release/build_llvm_package.bat
@@ -11,7 +11,7 @@
REM Visual Studio 2019, CMake, Ninja, GNUWin32, SWIG, Python 3,
REM NSIS with the strlen_8192 patch,
REM Visual Studio 2019 SDK and Nuget (for the clang-format plugin),
-REM Perl (for the OpenMP run-time).
+REM Perl (for the OpenMP run-time), 7Zip.
REM
REM
REM For LLDB, SWIG version <= 3.0.8 needs to be used to work around
@@ -91,8 +91,14 @@
ninja check-clang-tools || ninja check-clang-tools || ninja check-clang-tools || exit /b
ninja check-clangd || ninja check-clangd || ninja check-clangd || exit /b
ninja package || exit /b
+
+7z x LLVM-%package_version%-win32.exe -orepack
+rmdir /s /q repack\$PLUGINSDIR
+del repack\Uninstall.exe
+7z a LLVM-%package_version%-win32.zip .\repack\* -mx9
cd ..
+
REM The plug-in is built separately as it uses a statically linked clang-format.exe.
mkdir build_vsix
cd build_vsix
@@ -135,4 +141,9 @@
ninja check-clang-tools || ninja check-clang-tools || ninja check-clang-tools || exit /b
ninja check-clangd || ninja check-clangd || ninja check-clangd || exit /b
ninja package || exit /b
+
+7z x LLVM-%package_version%-win64.exe -orepack
+rmdir /s /q repack\$PLUGINSDIR
+del repack\Uninstall.exe
+7z a LLVM-%package_version%-win64.zip .\repack\* -mx9
cd ..
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D74896.246408.patch
Type: text/x-patch
Size: 1485 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200225/ca3e5dc3/attachment.bin>
More information about the llvm-commits
mailing list