From 743000931bc975810e13da2965ac2ef07166b4f3 Mon Sep 17 00:00:00 2001 From: Ed Maste Date: Fri, 15 Nov 2019 15:51:08 +0000 Subject: [PATCH] tests: default to 'cc' if CC not set 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 Message-Id: <20191115155108.39488-1-emaste@freefall.freebsd.org> Signed-off-by: David Gibson --- 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 06bbccb..e37ae59 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