“6620ae0d97d8fca25cc9a65b10b17eefb59b09ba”上不存在“docs-en/07-develop/03-insert-data/03-opentsdb-telnet.mdx”
提交 a01709e7 编写于 作者: M mindspore-ci-bot 提交者: Gitee

!254 invoke bash scripts without capturing output on compiling

Merge pull request !254 from liangyongxiong/fix-build
...@@ -65,6 +65,10 @@ build_crc32() { ...@@ -65,6 +65,10 @@ build_crc32() {
rm -f "$CRC32_OUTPUT_DIR/$CRC32_SO_FILE" rm -f "$CRC32_OUTPUT_DIR/$CRC32_SO_FILE"
read -ra PYBIND11_INCLUDES <<<"$($PYTHON -m pybind11 --includes)" read -ra PYBIND11_INCLUDES <<<"$($PYTHON -m pybind11 --includes)"
if [ ! -n "${PYBIND11_INCLUDES[0]}" ]; then
echo "pybind11 is required"
exit 1
fi
c++ -O2 -O3 -shared -std=c++11 -fPIC -fstack-protector-all -D_FORTIFY_SOURCE=2 \ c++ -O2 -O3 -shared -std=c++11 -fPIC -fstack-protector-all -D_FORTIFY_SOURCE=2 \
-Wno-maybe-uninitialized -Wno-unused-parameter -Wall -Wl,-z,relro,-z,now,-z,noexecstack \ -Wno-maybe-uninitialized -Wno-unused-parameter -Wall -Wl,-z,relro,-z,now,-z,noexecstack \
......
...@@ -25,6 +25,7 @@ build_ui() { ...@@ -25,6 +25,7 @@ build_ui() {
fi fi
rm -f package-lock.json rm -f package-lock.json
rm -rf node_modules
rm -rf dist rm -rf dist
mkdir -p public/static/js mkdir -p public/static/js
cp ../../third_party/hpcc/graphvizlib.wasm public/static/js cp ../../third_party/hpcc/graphvizlib.wasm public/static/js
...@@ -40,8 +41,6 @@ build_ui() { ...@@ -40,8 +41,6 @@ build_ui() {
echo "dist does not have file index.html, build failed" echo "dist does not have file index.html, build failed"
exit 1 exit 1
fi fi
rm -rf node_modules
} }
build_ui build_ui
...@@ -99,20 +99,11 @@ def run_script(script): ...@@ -99,20 +99,11 @@ def run_script(script):
cmd = '/bin/bash {}'.format(script) cmd = '/bin/bash {}'.format(script)
process = subprocess.Popen( process = subprocess.Popen(
shlex.split(cmd), shlex.split(cmd),
shell=False, shell=False
stdin=subprocess.PIPE,
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT
) )
while True: rc = process.wait()
line = process.stdout.readline() if rc:
if not line and process.poll() is not None:
break
if line:
sys.stdout.write(line.decode())
if process.returncode:
sys.exit(1) sys.exit(1)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册