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).
This commit is contained in:
Martin Storsjö committed 2025-09-04 15:38:08 +03:00
1 parent ebde75f350
commit 9347c21f74
1 file changed
+4
+4
View File
@@ -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