From 9347c21f741b6a8c030b3fd3abd4e594d9afb400 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Thu, 4 Sep 2025 15:36:55 +0300 Subject: [PATCH] build-llvm: Print a warning if we get more than one catch-all option In this case it's usually an option that wasn't recognized (although the misrecognized option may have been an earlier option and the current one may be the intended prefix). --- build-llvm.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build-llvm.sh b/build-llvm.sh index 9386bd5..1a3e306 100755 --- a/build-llvm.sh +++ b/build-llvm.sh @@ -92,6 +92,10 @@ while [ $# -gt 0 ]; do BUILDDIR="$BUILDDIR-pgo" ;; *) + if [ -n "$PREFIX" ]; then + echo Unrecognized parameter $1 + exit 1 + fi PREFIX="$1" ;; esac