forked from qt-creator/qt-creator
Let users disable environment entries
It's helpful to be able to temporarily disable environment variables, as opposed to having to remove (and then re-add) them entirely. Fixes: QTCREATORBUG-20984 Change-Id: Ib0d287035b9357507c4c19faaf3a1517382506b5 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -138,8 +138,10 @@ bool MakeInstallStep::init()
|
||||
const MakeInstallCommand cmd = target()->makeInstallCommand(installRoot().toString());
|
||||
if (cmd.environment.size() > 0) {
|
||||
Environment env = processParameters()->environment();
|
||||
for (auto it = cmd.environment.constBegin(); it != cmd.environment.constEnd(); ++it)
|
||||
env.set(it.key(), it.value());
|
||||
for (auto it = cmd.environment.constBegin(); it != cmd.environment.constEnd(); ++it) {
|
||||
if (cmd.environment.isEnabled(it))
|
||||
env.set(it.key(), cmd.environment.value(it));
|
||||
}
|
||||
processParameters()->setEnvironment(env);
|
||||
}
|
||||
m_noInstallTarget = false;
|
||||
|
||||
Reference in New Issue
Block a user