From 0bf30a7caba53aa85dcbdc877ace5e25bf45b526 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Arne=20Vestb=C3=B8?= Date: Thu, 26 Sep 2013 15:01:32 +0200 Subject: 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 --- mkspecs/features/ios/default_post.prf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mkspecs/features') 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 -- cgit v1.2.3