Add build failure message (#2397)
* Add build failure message * quit on error
This commit is contained in:
parent
70ba492eb7
commit
9bcbaa8869
11
build.sh
11
build.sh
@ -5,6 +5,7 @@
|
|||||||
# In most cases, type make will give what you want.
|
# In most cases, type make will give what you want.
|
||||||
|
|
||||||
# See additional instruction in doc/build.md
|
# See additional instruction in doc/build.md
|
||||||
|
set -e
|
||||||
|
|
||||||
if make; then
|
if make; then
|
||||||
echo "Successfully build multi-thread xgboost"
|
echo "Successfully build multi-thread xgboost"
|
||||||
@ -14,7 +15,11 @@ else
|
|||||||
echo "Start to build single-thread xgboost"
|
echo "Start to build single-thread xgboost"
|
||||||
make clean_all
|
make clean_all
|
||||||
make config=make/minimum.mk
|
make config=make/minimum.mk
|
||||||
echo "Successfully build single-thread xgboost"
|
if [ $? -eq 0 ] ;then
|
||||||
echo "If you want multi-threaded version"
|
echo "Successfully build single-thread xgboost"
|
||||||
echo "See additional instructions in doc/build.md"
|
echo "If you want multi-threaded version"
|
||||||
|
echo "See additional instructions in doc/build.md"
|
||||||
|
else
|
||||||
|
echo "Failed to build single-thread xgboost"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user