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 | e3770db70727423f659f69bd8897537711580dc6 (patch) | |
tree | a0c4b9c33f4630263c3d42fa63aa6377f0adf817 /tools/gccas | |
parent | 137d4b253384adce88bfa2a1c37695d90f0a9d6c (diff) | |
download | llvm-e3770db70727423f659f69bd8897537711580dc6.tar.gz llvm-e3770db70727423f659f69bd8897537711580dc6.tar.bz2 llvm-e3770db70727423f659f69bd8897537711580dc6.tar.xz |
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
Diffstat (limited to 'tools/gccas')
-rw-r--r-- | tools/gccas/gccas.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/gccas/gccas.sh b/tools/gccas/gccas.sh index d1dab73cb6..05b0ac12f3 100644 --- a/tools/gccas/gccas.sh +++ b/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 |