10/04/2019 22:52, Bruce Richardson:
> if either gcc or clang are missing, skip doing those builds.
> This allows a setup to only do, e.g. gcc tests.
> 
> CC: sta...@dpdk.org
> Signed-off-by: Bruce Richardson <bruce.richard...@intel.com>
> ---
> --- a/devtools/test-meson-builds.sh
> +++ b/devtools/test-meson-builds.sh
>  # shared and static linked builds with gcc and clang
>  for c in gcc clang ; do
> -     for s in static shared ; do
> -             export CC="ccache $c"
> -             build build-$c-$s --default-library=$s
> -     done
> +     if command -v $c >/dev/null 2>&1 ; then
> +             for s in static shared ; do
> +                     export CC="ccache $c"
> +                     build build-$c-$s --default-library=$s
> +             done
> +     fi

May I suggest this oneline change instead?

command -v $c >/dev/null 2>&1 || continue



Reply via email to