From c6001d30567cf3274731dd9a24dbfa08c925052b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Fri, 9 May 2025 00:26:14 +0300 Subject: [PATCH] build-cross-tools: Allow passing LTO and PGO options to build-llvm.sh --- build-cross-tools.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build-cross-tools.sh b/build-cross-tools.sh index 1aa9480..fd28ec7 100755 --- a/build-cross-tools.sh +++ b/build-cross-tools.sh @@ -44,6 +44,9 @@ while [ $# -gt 0 ]; do --disable-make) NO_MAKE=1 ;; + --thinlto|--lto|--pgo*) + LLVM_ARGS="$LLVM_ARGS $1" + ;; *) if [ -z "$NATIVE" ]; then NATIVE="$1" @@ -60,7 +63,7 @@ while [ $# -gt 0 ]; do shift done 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 fi