Skip to content

Commit d3c7a1b

Browse files
committed
build-all: Add an --llvm-only option
1 parent 37daec7 commit d3c7a1b

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

build-all.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ while [ $# -gt 0 ]; do
7373
--clean-runtimes)
7474
CLEAN_RUNTIMES=1
7575
;;
76+
--llvm-only)
77+
LLVM_ONLY=1
78+
;;
7679
*)
7780
if [ -n "$PREFIX" ]; then
7881
echo Unrecognized parameter $1
@@ -84,7 +87,7 @@ while [ $# -gt 0 ]; do
8487
shift
8588
done
8689
if [ -z "$PREFIX" ]; then
87-
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"
90+
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"
8891
exit 1
8992
fi
9093

@@ -109,6 +112,9 @@ if [ -z "$NO_TOOLS" ]; then
109112
./strip-llvm.sh $PREFIX $HOST_ARGS
110113
fi
111114
fi
115+
if [ -n "$LLVM_ONLY" ]; then
116+
exit 0
117+
fi
112118
./install-wrappers.sh $PREFIX $HOST_ARGS ${HOST_CLANG:+--host-clang=$HOST_CLANG}
113119
./build-mingw-w64-tools.sh $PREFIX $HOST_ARGS
114120
fi

0 commit comments

Comments
 (0)