commit 2b451a28d8e98d5919e94dd611a8d9c66a9396af
parent 6cd5f7028647a88935ec1f7776a08b51eb0fb1c8
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Tue, 14 Jun 2022 18:25:44 +0200
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.
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tools/test.sh b/tools/test.sh
@@ -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?`