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 1
1
---
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() {
19
19
exit 1
20
20
}
21
21
22
+ need_ok () {
23
+ if [ $? -ne 0 ]
24
+ then
25
+ err $1
26
+ fi
27
+ }
22
28
23
29
need_cmd () {
24
30
if which $1 > /dev/null 2>&1
@@ -441,12 +447,14 @@ if [ $NEED_INIT ]
441
447
then
442
448
msg " git: submodule init"
443
449
" ${CFG_GIT} " submodule init --quiet
450
+ need_ok " git failed"
444
451
fi
445
452
446
453
if [ $NEED_UPDATE ]
447
454
then
448
455
msg " git: submodule update"
449
456
" ${CFG_GIT} " submodule update --quiet
457
+ need_ok " git failed"
450
458
fi
451
459
452
460
cd ${CFG_BUILD_DIR}
534
542
${CFG_BUILD_DIR} /${CFG_LLVM_SRC_DIR} /configure $LLVM_FLAGS
535
543
;;
536
544
esac
545
+ need_ok " LLVM configure failed"
537
546
cd $CFG_BUILD_DIR
538
547
else
539
548
LLVM_BUILD_DIR=
You can’t perform that action at this time.
0 commit comments