mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-19 00:14:20 +00:00
Two improvements:
1. Allow -- as well as - options (Bill Wendling) 2. Pass unrecognized options to opt and let it handle the errors, if any (Chris Lattner). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33798 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
137d4b2533
commit
e3770db707
@ -23,6 +23,7 @@ OPTOPTS="-std-compile-opts -f"
|
||||
ASOPTS=""
|
||||
lastwasdasho=0
|
||||
for option in "$@" ; do
|
||||
option=`echo "$option" | sed 's/^--/-/'`
|
||||
case "$option" in
|
||||
-disable-opt)
|
||||
OPTOPTS="$OPTOPTS $option"
|
||||
@ -47,8 +48,7 @@ for option in "$@" ; do
|
||||
# ignore
|
||||
;;
|
||||
-*)
|
||||
echo "gccas: Unrecognized option '$option'"
|
||||
exit 1
|
||||
OPTOPTS="$OPTOPTS $option"
|
||||
;;
|
||||
*)
|
||||
if test $lastwasdasho -eq 1 ; then
|
||||
|
Loading…
x
Reference in New Issue
Block a user