diff options
author | Ed Maste <emaste@freebsd.org> | 2019-11-15 15:51:08 +0000 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2019-11-16 09:16:28 +1100 |
commit | 743000931bc975810e13da2965ac2ef07166b4f3 (patch) | |
tree | b577830a743fc114962d739fd11096764e6bec34 /tests | |
parent | adcd676491ccbefc17da551cf911b2f4d7d330f6 (diff) | |
download | dtc-743000931bc975810e13da2965ac2ef07166b4f3.zip dtc-743000931bc975810e13da2965ac2ef07166b4f3.tar.gz dtc-743000931bc975810e13da2965ac2ef07166b4f3.tar.bz2 |
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>
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/run_tests.sh | 2 |
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 |