From: Thomas Monjalon Date: Tue, 8 Mar 2016 15:43:50 +0000 (+0100) Subject: scripts: stop build test after first error X-Git-Tag: spdx-start~7038 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=1335dcf780ef774c8383fb8bb6fa7d9bc6c38f5d;p=dpdk.git scripts: stop build test after first error Signed-off-by: Thomas Monjalon --- diff --git a/scripts/test-build.sh b/scripts/test-build.sh index ffad7eef44..ffa7beaa1e 100755 --- a/scripts/test-build.sh +++ b/scripts/test-build.sh @@ -64,6 +64,7 @@ print_help () { J=$DPDK_MAKE_JOBS short=false +maxerr=-Wfatal-errors while getopts hj:s ARG ; do case $ARG in j ) J=$OPTARG ;; @@ -146,7 +147,7 @@ for conf in $configs ; do config $dir $target $options echo "================== Build $dir" - make -j$J EXTRA_CFLAGS="$DPDK_DEP_CFLAGS" \ + make -j$J EXTRA_CFLAGS="$maxerr $DPDK_DEP_CFLAGS" \ EXTRA_LDFLAGS="$DPDK_DEP_LDFLAGS" O=$dir ! $short || break echo "================== Build examples for $dir"