Browse Source

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>
main
Ed Maste 5 years ago committed by David Gibson
parent
commit
743000931b
  1. 2
      tests/run_tests.sh

2
tests/run_tests.sh

@ -4,7 +4,7 @@ SRCDIR=`dirname "$0"`
. "$SRCDIR/testutils.sh" . "$SRCDIR/testutils.sh"


if [ -z "$CC" ]; then if [ -z "$CC" ]; then
CC=gcc CC=cc
fi fi


# stat differs between platforms # stat differs between platforms

Loading…
Cancel
Save