summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorruki <[email protected]>2017-05-17 08:57:18 +0800
committerruki <[email protected]>2017-05-17 08:57:18 +0800
commita06a241c59cfa7e13769e797872579214bd38367 (patch)
treee9251d45a12565315616344b1d0b5826cda9a41f /scripts
parent08c53d721f0b9c6e7a931eaffbed941d0bcc6253 (diff)
print error info when building xmake core fails
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/get.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/get.sh b/scripts/get.sh
index 3d174e702..6279cfdd3 100755
--- a/scripts/get.sh
+++ b/scripts/get.sh
@@ -86,7 +86,12 @@ else
fi
if [ 'x__install_only__' != "x$2" ]
then
- make -C /tmp/$$xmake_getter --no-print-directory build || my_exit 'Build Fail'
+ make -C /tmp/$$xmake_getter --no-print-directory build
+ if [ $? -ne 0 ]
+ then
+ make -C /tmp/$$xmake_getter/core --no-print-directory error
+ my_exit 'Build Fail'
+ fi
fi
PATHclone=$PATH
patharr=($PATHclone)