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:
@@ -140,7 +140,7 @@ bool MakeInstallStep::init()
|
||||
Environment env = processParameters()->environment();
|
||||
for (auto it = cmd.environment.constBegin(); it != cmd.environment.constEnd(); ++it) {
|
||||
if (cmd.environment.isEnabled(it))
|
||||
env.set(it.key(), cmd.environment.value(it));
|
||||
env.set(it.key(), cmd.environment.expandedValueForKey(cmd.environment.key(it)));
|
||||
}
|
||||
processParameters()->setEnvironment(env);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user