mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-02-24 06:54:13 +00:00
36 lines
508 B
Text
36 lines
508 B
Text
: -O* specialization cc wrapper : 2011-11-11 :
|
|||
|
|||
case " $* " in
|
|||
*" -dumpmachine "*) echo $HOSTTYPE; exit ;;
|
|||
esac
|
|||
|
|||
cc=cc
|
|||
|
|||
CCREPLACE='' # these (possibly empty) options replace -O*
|
|||
CCALWAYS='' # these (possibly empty) options always set
|
|||
|
|||
case $CCREPLACE in
|
|||
'') ;;
|
|||
*) case " $* " in
|
|||
*" -O"*)
|
|||
set '' "$@" ''
|
|||
shift
|
|||
while :
|
|||
do a=$1
|
|||
shift
|
|||
case $a in
|
|||
'') break
|
|||
;;
|
|||
-O*) set '' "$@" $CCREPLACE
|
|||
;;
|
|||
*) set '' "$@" "$a"
|
|||
;;
|
|||
esac
|
|||
shift
|
|||
done
|
|||
;;
|
|||
esac
|
|||
;;
|
|||
esac
|
|||
$cc $CCALWAYS "$@"
|