mirror of
git://c9x.me/qbe.git
synced 2026-04-05 18:09:47 +00:00
tools/test.sh: Without a TARGET, use $CC if defined
cc can be absent in Gentoo to make sure the right compiler is picked, for example when clang is preferred or when cross-compiling.
This commit is contained in:
parent
6cd5f70286
commit
2b451a28d8
@ -79,8 +79,8 @@ init() {
|
||||
cc="cc"
|
||||
;;
|
||||
*)
|
||||
cc="cc -no-pie"
|
||||
testcc "$cc" || cc="cc"
|
||||
cc="${CC:-cc} -no-pie"
|
||||
testcc "$cc" || cc="${CC:-cc}"
|
||||
;;
|
||||
esac
|
||||
TARGET=`$bin -t?`
|
||||
|
||||
Loading…
Reference in New Issue
Block a user