summaryrefslogtreecommitdiffstats
path: root/mkspecs
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@digia.com>2013-09-26 15:01:32 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-09-26 18:45:16 +0200
commit0bf30a7caba53aa85dcbdc877ace5e25bf45b526 (patch)
tree31c4a3641b19840bf3b91310966dbb41cf44404c /mkspecs
parent696060134d10d44175970ffd38618544ecdd9387 (diff)
iOS: Propagate xcodebuild exit-code from makefile wrapper
Without bash's pipefail option we would end up with the exit code of grep. Since we don't know which shell the user is running, we have to explicitly call bash. Change-Id: Ic3f6db0af9bb90a58001ccfbf9d6d21b6c9c9634 Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
Diffstat (limited to 'mkspecs')
-rw-r--r--mkspecs/features/ios/default_post.prf2
1 files changed, 1 insertions, 1 deletions
diff --git a/mkspecs/features/ios/default_post.prf b/mkspecs/features/ios/default_post.prf
index 654255eb1f..3322047788 100644
--- a/mkspecs/features/ios/default_post.prf
+++ b/mkspecs/features/ios/default_post.prf
@@ -19,7 +19,7 @@ equals(TEMPLATE, app) {
# We use xcodebuild to do the actual build, but filter out the verbose
# output that shows all environment variables for each build step.
- xcodebuild_build.commands = "@xcodebuild build | grep -v setenv"
+ xcodebuild_build.commands = "@bash -o pipefail -c 'xcodebuild | grep -v setenv'"
QMAKE_EXTRA_TARGETS += xcodebuild_build
all.depends = xcodebuild_build
QMAKE_EXTRA_TARGETS += all