This is an automated email from the ASF dual-hosted git repository.
areusch pushed a commit to branch ci-docker-staging
in repository https://gitbox.apache.org/repos/asf/tvm.git
The following commit(s) were added to refs/heads/ci-docker-staging by this push:
new 90a1ec3 fix empty string case
90a1ec3 is described below
commit 90a1ec330969221ac0dd69c4fab916cebdc859b2
Author: Andrew Reusch <[email protected]>
AuthorDate: Thu Aug 12 14:05:09 2021 -0700
fix empty string case
---
tests/scripts/task_build.sh | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/tests/scripts/task_build.sh b/tests/scripts/task_build.sh
index 4d39cf7..79dabdb 100755
--- a/tests/scripts/task_build.sh
+++ b/tests/scripts/task_build.sh
@@ -18,11 +18,15 @@
set -eux
export VTA_HW_PATH=`pwd`/3rdparty/vta-hw
-MAKE_ARG="${2-}"
+MAKE_ARG=( )
+if [ -n "${2+x}" ]; then
+ MAKE_ARG=( "${2}" )
+fi
+
if [ -n "${CI_CPUSET_NUM_CPUS+x}" -a -z "${MAKE_ARG}" ]; then
- MAKE_ARG="-j${CI_CPUSET_NUM_CPUS}"
+ MAKE_ARG=( "-j${CI_CPUSET_NUM_CPUS}" )
fi
cd "$1"
cmake .. -DCMAKE_BUILD_TYPE=RelWithDebInfo
-make "${MAKE_ARG}"
+make "${MAKE_ARG[@]-}"