forked from qt-creator/qt-creator
Utils::Environment: Use expanded values
The Environment class is supposed to support values with references to other variables, but we failed to actually expand them in most places. Fixes: QTCREATORBUG-22687 Change-Id: I108cb59d3b4571471423455240f6f4f1cf64bf05 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -192,7 +192,7 @@ bool CMakeBuildStep::init()
|
||||
pp->setMacroExpander(bc->macroExpander());
|
||||
Utils::Environment env = bc->environment();
|
||||
Utils::Environment::setupEnglishOutput(&env);
|
||||
if (!env.value("NINJA_STATUS").startsWith(m_ninjaProgressString))
|
||||
if (!env.expandedValueForKey("NINJA_STATUS").startsWith(m_ninjaProgressString))
|
||||
env.set("NINJA_STATUS", m_ninjaProgressString + "%o/sec] ");
|
||||
pp->setEnvironment(env);
|
||||
pp->setWorkingDirectory(bc->buildDirectory());
|
||||
|
||||
Reference in New Issue
Block a user