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

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



On Fri, Nov 15, 2019 at 03:51:08PM +0000, Ed Maste wrote:
> 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>

Applied, thanks.  This is also more consistent, since I believe for
the actual build we just use make's default CC, which is generally
"cc".

> ---
>  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

-- 
David Gibson			| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you.  NOT _the_ _other_
				| _way_ _around_!
http://www.ozlabs.org/~dgibson

Attachment: signature.asc
Description: PGP signature


[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