Skip to content

Commit

Permalink
Add build failure message (dmlc#2397)
Browse files Browse the repository at this point in the history
* Add build failure message

* quit on error
  • Loading branch information
Zex Li authored and terrytangyuan committed Jun 26, 2017
1 parent 70ba492 commit 9bcbaa8
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
# In most cases, type make will give what you want.

# See additional instruction in doc/build.md
set -e

if make; then
echo "Successfully build multi-thread xgboost"
Expand All @@ -14,7 +15,11 @@ else
echo "Start to build single-thread xgboost"
make clean_all
make config=make/minimum.mk
echo "Successfully build single-thread xgboost"
echo "If you want multi-threaded version"
echo "See additional instructions in doc/build.md"
if [ $? -eq 0 ] ;then
echo "Successfully build single-thread xgboost"
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

0 comments on commit 9bcbaa8

Please sign in to comment.