From d3c7a1b06f60ef7a810002038becd5294a26eb4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Mon, 2 Jun 2025 16:12:20 +0300 Subject: [PATCH] build-all: Add an --llvm-only option --- build-all.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/build-all.sh b/build-all.sh index 4e70373..48a3f04 100755 --- a/build-all.sh +++ b/build-all.sh @@ -73,6 +73,9 @@ while [ $# -gt 0 ]; do --clean-runtimes) CLEAN_RUNTIMES=1 ;; + --llvm-only) + LLVM_ONLY=1 + ;; *) if [ -n "$PREFIX" ]; then echo Unrecognized parameter $1 @@ -84,7 +87,7 @@ while [ $# -gt 0 ]; do shift done if [ -z "$PREFIX" ]; then - echo "$0 [--host-clang[=clang]] [--enable-asserts] [--disable-dylib] [--with-clang] [--thinlto] [--full-llvm] [--disable-lldb] [--disable-lldb-mi] [--disable-clang-tools-extra] [--host=triple] [--with-default-win32-winnt=0x601] [--with-default-msvcrt=ucrt] [--enable-cfguard|--disable-cfguard] [--no-runtimes] [--no-tools] [--wipe-runtimes] [--clean-runtimes] dest" + echo "$0 [--host-clang[=clang]] [--enable-asserts] [--disable-dylib] [--with-clang] [--thinlto] [--full-llvm] [--disable-lldb] [--disable-lldb-mi] [--disable-clang-tools-extra] [--host=triple] [--with-default-win32-winnt=0x601] [--with-default-msvcrt=ucrt] [--enable-cfguard|--disable-cfguard] [--no-runtimes] [--llvm-only] [--no-tools] [--wipe-runtimes] [--clean-runtimes] dest" exit 1 fi @@ -109,6 +112,9 @@ if [ -z "$NO_TOOLS" ]; then ./strip-llvm.sh $PREFIX $HOST_ARGS fi fi + if [ -n "$LLVM_ONLY" ]; then + exit 0 + fi ./install-wrappers.sh $PREFIX $HOST_ARGS ${HOST_CLANG:+--host-clang=$HOST_CLANG} ./build-mingw-w64-tools.sh $PREFIX $HOST_ARGS fi