Options:
--version: [required] version to build
--help: display this help
--x86: build and test x86 variant
--x64: build and test x64 variant
Note: At least one variant to build is required.
Example: build_llvm_release.bat --version 15.0.0 --x64
Differential D135255
Introduce options for Windows packaging script Authored by pbo-linaro on Oct 5 2022, 4:16 AM.
Details
Options: Note: At least one variant to build is required. Example: build_llvm_release.bat --version 15.0.0 --x64
Diff Detail
Event TimelineComment Actions I wonder if we shouldn't just build both archs if nothing is specified to keep the old behavior.
Comment Actions The first goal of all those patches, beyond cleanup, is to add arm64 support to this script. I can still change to:
Depends on your taste, I'm open to what you prefer :)
Comment Actions +CarlosAlbertoEnciso who also worked on this script recently. I think the other option would be to detect what platform we're on, and build x86+x64 or arm64 depending on that. But having less magic is also good, so just having to pass the flags sounds good to me. Comment Actions I'm more in favor of less magic, and more explicit. Being able to say clearly "this is what is expected" is a good property. 43 echo choose one or several variants from: --x86 --x64 44 exit /b 1 So, you don't have to dig in script internals to understand what is done/expected. Comment Actions Basically lgtm, just some nitty comments.
Comment Actions Added --x86 to example, to show that several arch can be built with a single command.
Comment Actions @thieta Does that patch looks good to you? If yes, would that be possible to merge it please? Comment Actions No problem, thanks very much for coming back :) That would be very nice if you could merge it. Thanks. | |||||||||||||||||||||||||||||||||||||||||||
Not sure I like --revision here. I would probably use --version instead.