From 6a9b3de0bbee56e1061b2cdee07d8fd339f5820a Mon Sep 17 00:00:00 2001 From: liuhaitao Date: Tue, 26 May 2020 19:58:49 +0800 Subject: [PATCH] tools/testbuild.sh: fix testbuild.sh called without -e option fail issue As in https://github.com/apache/incubator-nuttx/issues/1114 discuss, let EXTRA_FLAGS="EXTRAFLAGS=" defaultly to avoid testbuild.sh called without -e option fail issue. It also works well with -e "-Wno-cpp -Werror". Signed-off-by: liuhaitao --- tools/testbuild.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/testbuild.sh b/tools/testbuild.sh index 91efb5354e..e49267ba6f 100755 --- a/tools/testbuild.sh +++ b/tools/testbuild.sh @@ -39,7 +39,7 @@ progname=$0 fail=0 APPSDIR=$WD/../apps MAKE_FLAGS=-k -EXTRA_FLAGS= +EXTRA_FLAGS="EXTRAFLAGS=" MAKE=make unset testfile unset HOPTION @@ -89,7 +89,7 @@ while [ ! -z "$1" ]; do ;; -e ) shift - EXTRA_FLAGS="EXTRAFLAGS=$1" + EXTRA_FLAGS+="$1" ;; -x ) MAKE_FLAGS='--silent --no-print-directory'