~mpu/qbe

qbe: tools/test.sh: Without a TARGET, use $CC if defined v1 APPLIED

Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Haelwenn (lanodan) Monnier: 1
 tools/test.sh: Without a TARGET, use $CC if defined

 1 files changed, 2 insertions(+), 2 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~mpu/qbe/patches/32987/mbox | git am -3
Learn more about email & git

[PATCH qbe] tools/test.sh: Without a TARGET, use $CC if defined Export this patch

Haelwenn (lanodan) Monnier <contact@hacktivis.me>
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(-)

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?`
-- 
2.35.1