summaryrefslogtreecommitdiff
path: root/src/app/qbs/commandlinefrontend.cpp
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@qt.io>2017-04-10 16:14:10 +0200
committerChristian Kandeler <christian.kandeler@qt.io>2017-04-12 09:00:18 +0000
commit58a46e69a34b755bd300bc1b83ff6d9c277baa58 (patch)
tree4c7e1f154d1752c1d58a0c9093fd53ac8b8b7e0b /src/app/qbs/commandlinefrontend.cpp
parent2a872a30bb433298cdf48854ef9f79e84615e467 (diff)
downloadqbs-58a46e69a34b755bd300bc1b83ff6d9c277baa58.tar.gz
Explicitly set the environment for resolving a project
Initialize the respective variable to the empty environment and set it to the system environment explicitly in the command-line frontend. This makes the responsibilities clearer; there is no behavior change. Change-Id: I08efae8ac798d018d185da475a772a2502a5e8f7 Reviewed-by: Jake Petroules <jake.petroules@qt.io> Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'src/app/qbs/commandlinefrontend.cpp')
-rw-r--r--src/app/qbs/commandlinefrontend.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/app/qbs/commandlinefrontend.cpp b/src/app/qbs/commandlinefrontend.cpp
index 7c3905d50..d2ad8b7c7 100644
--- a/src/app/qbs/commandlinefrontend.cpp
+++ b/src/app/qbs/commandlinefrontend.cpp
@@ -139,6 +139,7 @@ void CommandLineFrontend::start()
if (m_parser.showProgress())
m_observer = new ConsoleProgressObserver;
SetupProjectParameters params;
+ params.setEnvironment(QProcessEnvironment::systemEnvironment());
params.setProjectFilePath(m_parser.projectFilePath());
params.setIgnoreDifferentProjectFilePath(m_parser.force());
params.setDryRun(m_parser.dryRun());