summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2016-04-13 16:14:23 -0700
committerJohn Firebaugh <john.firebaugh@gmail.com>2016-04-13 17:07:29 -0700
commit009a28943c510b0de93b903ca191e586d08cd2e9 (patch)
tree7e625dbdccb028c9e504eeb5f3bf6b7b2b30ea51 /configure
parent7e0a2e36e60d9def45f396b8dc9ee109c24013ba (diff)
downloadqtlocation-mapboxgl-009a28943c510b0de93b903ca191e586d08cd2e9.tar.gz
[build] Fail configure if a mason command fails
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure3
1 files changed, 2 insertions, 1 deletions
diff --git a/configure b/configure
index efcf63d01f..1a8337d63e 100755
--- a/configure
+++ b/configure
@@ -39,7 +39,8 @@ function print_flags {
if [ ! -z ${!VERSION:-} ] ; then
mason install ${NAME} ${!VERSION}
for FLAGS in "$@" ; do
- CONFIG+=" '${NAME}_${FLAGS}%': $(quote_flags $(mason ${FLAGS} ${NAME} ${!VERSION})),"$LN
+ flags=$(mason ${FLAGS} ${NAME} ${!VERSION}) || exit 1
+ CONFIG+=" '${NAME}_${FLAGS}%': $(quote_flags $flags),"$LN
done
else
warn "* Not using ${NAME}"