summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEd Maste <emaste@freebsd.org>2019-11-15 15:51:08 +0000
committerDavid Gibson <david@gibson.dropbear.id.au>2019-11-16 09:16:28 +1100
commit743000931bc975810e13da2965ac2ef07166b4f3 (patch)
treeb577830a743fc114962d739fd11096764e6bec34
parentadcd676491ccbefc17da551cf911b2f4d7d330f6 (diff)
downloaddevice-tree-compiler-743000931bc975810e13da2965ac2ef07166b4f3.tar.gz
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 <emaste@freebsd.org> Message-Id: <20191115155108.39488-1-emaste@freefall.freebsd.org> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
-rwxr-xr-xtests/run_tests.sh2
1 files changed, 1 insertions, 1 deletions
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