diff options
author | Haelwenn (lanodan) Monnier <contact@hacktivis.me> | 2022-06-14 18:25:44 +0200 |
---|---|---|
committer | Quentin Carbonneaux <quentin@c9x.me> | 2022-06-14 18:46:38 +0200 |
commit | 2b451a28d8e98d5919e94dd611a8d9c66a9396af (patch) | |
tree | 9c330131b516122ad1d2ef808a80a0cd2432d9c2 | |
parent | 6cd5f7028647a88935ec1f7776a08b51eb0fb1c8 (diff) | |
download | roux-2b451a28d8e98d5919e94dd611a8d9c66a9396af.tar.gz |
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.
-rwxr-xr-x | tools/test.sh | 4 |
1 files changed, 2 insertions, 2 deletions
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?` |