diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2007-02-02 21:49:27 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2007-02-02 21:49:27 +0000 |
commit | 697f1104e7aaf201882c23ba918fa89d7d969c9c (patch) | |
tree | 78291bcfc37bd7a9ceb4f46f77ecc36624471c1d /llvm | |
parent | f4af392bd9f04d6d2f5bfda2f03907f0e390f9e6 (diff) | |
download | bcm5719-llvm-697f1104e7aaf201882c23ba918fa89d7d969c9c.tar.gz bcm5719-llvm-697f1104e7aaf201882c23ba918fa89d7d969c9c.zip |
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).
llvm-svn: 33798
Diffstat (limited to 'llvm')
-rw-r--r-- | llvm/tools/gccas/gccas.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/tools/gccas/gccas.sh b/llvm/tools/gccas/gccas.sh index d1dab73cb65..05b0ac12f3d 100644 --- a/llvm/tools/gccas/gccas.sh +++ b/llvm/tools/gccas/gccas.sh @@ -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 |