From 2b451a28d8e98d5919e94dd611a8d9c66a9396af Mon Sep 17 00:00:00 2001 From: "Haelwenn (lanodan) Monnier" Date: Tue, 14 Jun 2022 18:25:44 +0200 Subject: 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. --- tools/test.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools/test.sh') diff --git a/tools/test.sh b/tools/test.sh index 536d240..4653b83 100755 --- 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?` -- cgit 1.4.1