~mcf/qbe

2b451a28d8e98d5919e94dd611a8d9c66a9396af — Haelwenn (lanodan) Monnier 1 year, 11 months ago 6cd5f70
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.
1 files changed, 2 insertions(+), 2 deletions(-)

M tools/test.sh
M tools/test.sh => tools/test.sh +2 -2
@@ 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?`