blob: 87077b5a943c4d49a664a143f8dd948d07aa7299 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
: -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 "$@"
|