build-cross-tools: Allow passing LTO and PGO options to build-llvm.sh
This commit is contained in:
1 parent
9e628b0f2d
commit
c6001d3056
1 file changed
+4
-1
@@ -44,6 +44,9 @@ while [ $# -gt 0 ]; do
|
|||||||
--disable-make)
|
--disable-make)
|
||||||
NO_MAKE=1
|
NO_MAKE=1
|
||||||
;;
|
;;
|
||||||
|
--thinlto|--lto|--pgo*)
|
||||||
|
LLVM_ARGS="$LLVM_ARGS $1"
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
if [ -z "$NATIVE" ]; then
|
if [ -z "$NATIVE" ]; then
|
||||||
NATIVE="$1"
|
NATIVE="$1"
|
||||||
@@ -60,7 +63,7 @@ while [ $# -gt 0 ]; do
|
|||||||
shift
|
shift
|
||||||
done
|
done
|
||||||
if [ -z "$CROSS_ARCH" ]; then
|
if [ -z "$CROSS_ARCH" ]; then
|
||||||
echo $0 native prefix arch [--with-python] [--disable-lldb] [--disable-lldb-mi] [--disable-clang-tool-extra] [--disable-mingw-w64-tools] [--disable-make]
|
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]]
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user