devtools: skip meson build for missing compilers
authorBruce Richardson <bruce.richardson@intel.com>
Wed, 10 Apr 2019 20:52:22 +0000 (21:52 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 17 Apr 2019 15:15:55 +0000 (17:15 +0200)
If either gcc or clang are missing, skip doing those builds.
This allows a setup to only do, e.g. gcc tests.

Cc: stable@dpdk.org
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Luca Boccassi <bluca@debian.org>
Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
devtools/test-meson-builds.sh

index b3b5cfb..9a67cfa 100755 (executable)
@@ -54,6 +54,7 @@ fi
 
 # shared and static linked builds with gcc and clang
 for c in gcc clang ; do
+       command -v $c >/dev/null 2>&1 || continue
        for s in static shared ; do
                export CC="ccache $c"
                build build-$c-$s --default-library=$s