summary refs log tree commit diff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rwxr-xr-xtools/test.sh4
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?`