Update the Windows packaging script.
As discussed here:
https://discourse.llvm.org/t/build-llvm-release-bat-script-options/63146/6
These are the changes in this patch:
- Add command line options to select specific tasks:
- Specify output directory.
- Build 32 and/or 64 binaries.
- Run the tests
- Package the binaries.
- In stage-1 use lld-link.
- Split the build/test/package into separate functions.
- Added some trace statements.
- Include llvm-lib and llvm-windres in stage1.
The added command line options are:
--version [<number>] Version number (i.e. 14.0.4) --base-dir <name> Build base directory --log-file <name> Log filename --build-32 Build 32-bit binaries --build-64 Build 64-bit binaries --test-32 Run 32-bits tests --test-64 Run 64-bits tests --pack-32 Create 32-bits binary package --pack-64 Create 64-bits binary package --repack-32 Repack 32-bits binary package --repack-64 Repack 64-bits binary package --trace Debugging trace
I know you didn't change this, but when I write batch files, I generally reverse these two options, because I believe in this order, the @echo off would persist after the script exits which I don't like scripts changing my environment unecessarily.