mac build exitcode (#25540)

fix_copy_if_different
zhangchunle 5 years ago committed by GitHub
parent 76d1f8a1e9
commit 1a4a4219cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -372,6 +372,7 @@ function cmake_gen_and_build() {
}
function build_mac() {
set +e
mkdir -p ${PADDLE_ROOT}/build
cd ${PADDLE_ROOT}/build
cat <<EOF
@ -382,7 +383,11 @@ EOF
if [[ "$ENABLE_MAKE_CLEAN" != "OFF" ]]; then
make clean
fi
make install -j 8
make install -j 8;build_error=$?
if [ "$build_error" != 0 ];then
exit 7;
fi
set -e
build_size
}

Loading…
Cancel
Save