forked from qt-creator/qt-creator
Utils::Environment: Consider target OS type when sorting
That is, use case-insensitive sorting on Windows, so that e.g. "Path" will not appear after "PROCESSOR_REVISION". Fixes: QTCREATORBUG-22786 Change-Id: I42d469b6079037d1062dbd5b273f5aa8ade25e79 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -139,8 +139,10 @@ bool MakeInstallStep::init()
|
||||
if (cmd.environment.size() > 0) {
|
||||
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.expandedValueForKey(cmd.environment.key(it)));
|
||||
if (cmd.environment.isEnabled(it)) {
|
||||
const QString key = cmd.environment.key(it);
|
||||
env.set(key, cmd.environment.expandedValueForKey(key));
|
||||
}
|
||||
}
|
||||
processParameters()->setEnvironment(env);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user