File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 11---
2- refs/heads/master: b53281257200dd96afa7df7b95e95fbca26a8754
2+ refs/heads/master: c74d5ce0468054c327fecc1302275c66ed0b8f2c
Original file line number Diff line number Diff line change @@ -19,6 +19,12 @@ err() {
1919 exit 1
2020}
2121
22+ need_ok () {
23+ if [ $? -ne 0 ]
24+ then
25+ err $1
26+ fi
27+ }
2228
2329need_cmd () {
2430 if which $1 > /dev/null 2>&1
@@ -441,12 +447,14 @@ if [ $NEED_INIT ]
441447then
442448 msg " git: submodule init"
443449 " ${CFG_GIT} " submodule init --quiet
450+ need_ok " git failed"
444451fi
445452
446453if [ $NEED_UPDATE ]
447454then
448455 msg " git: submodule update"
449456 " ${CFG_GIT} " submodule update --quiet
457+ need_ok " git failed"
450458fi
451459
452460cd ${CFG_BUILD_DIR}
534542 ${CFG_BUILD_DIR} /${CFG_LLVM_SRC_DIR} /configure $LLVM_FLAGS
535543 ;;
536544 esac
545+ need_ok " LLVM configure failed"
537546 cd $CFG_BUILD_DIR
538547 else
539548 LLVM_BUILD_DIR=
You can’t perform that action at this time.
0 commit comments