未验证 提交 1a4a4219 编写于 作者: Z zhangchunle 提交者: GitHub

mac build exitcode (#25540)

上级 76d1f8a1
...@@ -372,6 +372,7 @@ function cmake_gen_and_build() { ...@@ -372,6 +372,7 @@ function cmake_gen_and_build() {
} }
function build_mac() { function build_mac() {
set +e
mkdir -p ${PADDLE_ROOT}/build mkdir -p ${PADDLE_ROOT}/build
cd ${PADDLE_ROOT}/build cd ${PADDLE_ROOT}/build
cat <<EOF cat <<EOF
...@@ -382,7 +383,11 @@ EOF ...@@ -382,7 +383,11 @@ EOF
if [[ "$ENABLE_MAKE_CLEAN" != "OFF" ]]; then if [[ "$ENABLE_MAKE_CLEAN" != "OFF" ]]; then
make clean make clean
fi fi
make install -j 8 make install -j 8;build_error=$?
if [ "$build_error" != 0 ];then
exit 7;
fi
set -e
build_size build_size
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册