Skip to content

Commit c6001d3

Browse files
committed
build-cross-tools: Allow passing LTO and PGO options to build-llvm.sh
1 parent 9e628b0 commit c6001d3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

build-cross-tools.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ while [ $# -gt 0 ]; do
4444
--disable-make)
4545
NO_MAKE=1
4646
;;
47+
--thinlto|--lto|--pgo*)
48+
LLVM_ARGS="$LLVM_ARGS $1"
49+
;;
4750
*)
4851
if [ -z "$NATIVE" ]; then
4952
NATIVE="$1"
@@ -60,7 +63,7 @@ while [ $# -gt 0 ]; do
6063
shift
6164
done
6265
if [ -z "$CROSS_ARCH" ]; then
63-
echo $0 native prefix arch [--with-python] [--disable-lldb] [--disable-lldb-mi] [--disable-clang-tool-extra] [--disable-mingw-w64-tools] [--disable-make]
66+
echo $0 native prefix arch [--with-python] [--disable-lldb] [--disable-lldb-mi] [--disable-clang-tool-extra] [--disable-mingw-w64-tools] [--disable-make] [--thinlto] [--lto] [--pgo[=profile]]
6467
exit 1
6568
fi
6669

0 commit comments

Comments
 (0)