[PATCH] tests: default to 'cc' if CC not set

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



From: Ed Maste <emaste@xxxxxxxxxxx>

By default FreeBSD does not have 'gcc' in the PATH (on common platforms).
As on Linux 'cc' is available as a link to the default compiler (Clang or
GCC), so just use 'cc'.

Signed-off-by: Ed Maste <emaste@xxxxxxxxxxx>
---
 tests/run_tests.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/run_tests.sh b/tests/run_tests.sh
index a0a5245..57cc424 100755
--- a/tests/run_tests.sh
+++ b/tests/run_tests.sh
@@ -4,7 +4,7 @@ SRCDIR=`dirname "$0"`
 . "$SRCDIR/testutils.sh"
 
 if [ -z "$CC" ]; then
-    CC=gcc
+    CC=cc
 fi
 
 # stat differs between platforms
-- 
2.23.0




[Index of Archives]     [Device Tree]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux