aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@qt.io>2018-02-26 18:05:55 +0100
committerChristian Kandeler <christian.kandeler@qt.io>2018-03-02 09:18:29 +0000
commitd447d42bf2684b6021ec8238f46b59dc7a31b9ce (patch)
tree80306e6d4a64301f5666bb023aee13ab92512a61
parent053b31802b3520b083a8fc587cd367251fa0b2d8 (diff)
Fix exit code for failed multi-config builds
If one of the configurations failed and another one succeeded, then we would return with exit code zero if the successful configuration finished after the failed one. Change-Id: If46798d3d145eff45e9e22652fda8e16993794e6 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
-rw-r--r--src/app/qbs/commandlinefrontend.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/app/qbs/commandlinefrontend.cpp b/src/app/qbs/commandlinefrontend.cpp
index dd26846f4..9ee1248e7 100644
--- a/src/app/qbs/commandlinefrontend.cpp
+++ b/src/app/qbs/commandlinefrontend.cpp
@@ -254,7 +254,7 @@ void CommandLineFrontend::handleJobFinished(bool success, AbstractJob *job)
// fall through
case BuildCommandType:
case CleanCommandType:
- qApp->quit();
+ qApp->exit(m_cancelStatus == CancelStatusNone ? EXIT_SUCCESS : EXIT_FAILURE);
break;
default:
Q_ASSERT_X(false, Q_FUNC_INFO, "Missing case in switch statement");