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 <liuhaitao@xiaomi.com>
This commit is contained in:
parent
a4012bffa8
commit
6a9b3de0bb
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user