forked from qt-creator/qt-creator
Environment: Fix incorrect usage of appendOrSet
appendOrSet will append to existing environment variables which is not what we want for all the changed locations in this commit. Change-Id: Icf6b110acc59261659839375672943ec21923da1 Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -179,8 +179,8 @@ void LldbEngine::setupEngine()
|
|||||||
|
|
||||||
showMessage("STARTING LLDB: " + lldbCmd.toUserOutput());
|
showMessage("STARTING LLDB: " + lldbCmd.toUserOutput());
|
||||||
Environment environment = runParameters().debugger.environment;
|
Environment environment = runParameters().debugger.environment;
|
||||||
environment.appendOrSet("QT_CREATOR_LLDB_PROCESS", "1");
|
environment.set("QT_CREATOR_LLDB_PROCESS", "1");
|
||||||
environment.appendOrSet("PYTHONUNBUFFERED", "1"); // avoid flushing problem on macOS
|
environment.set("PYTHONUNBUFFERED", "1"); // avoid flushing problem on macOS
|
||||||
DebuggerItem::addAndroidLldbPythonEnv(lldbCmd, environment);
|
DebuggerItem::addAndroidLldbPythonEnv(lldbCmd, environment);
|
||||||
|
|
||||||
if (lldbCmd.osType() == OsTypeLinux) {
|
if (lldbCmd.osType() == OsTypeLinux) {
|
||||||
|
|||||||
@@ -1679,7 +1679,7 @@ void openOldEffectMaker(const QString &filePath)
|
|||||||
arguments << "--exportpath" << effectResPath.toString();
|
arguments << "--exportpath" << effectResPath.toString();
|
||||||
|
|
||||||
if (env.osType() == Utils::OsTypeMac)
|
if (env.osType() == Utils::OsTypeMac)
|
||||||
env.appendOrSet("QSG_RHI_BACKEND", "metal");
|
env.set("QSG_RHI_BACKEND", "metal");
|
||||||
|
|
||||||
Utils::Process *qqemProcess = new Utils::Process();
|
Utils::Process *qqemProcess = new Utils::Process();
|
||||||
qqemProcess->setEnvironment(env);
|
qqemProcess->setEnvironment(env);
|
||||||
|
|||||||
@@ -149,7 +149,7 @@ void PuppetEnvironmentBuilder::addControls() const
|
|||||||
const QString styleConfigFileName = getStyleConfigFileName();
|
const QString styleConfigFileName = getStyleConfigFileName();
|
||||||
|
|
||||||
if (!styleConfigFileName.isEmpty())
|
if (!styleConfigFileName.isEmpty())
|
||||||
m_environment.appendOrSet("QT_QUICK_CONTROLS_CONF", styleConfigFileName);
|
m_environment.set("QT_QUICK_CONTROLS_CONF", styleConfigFileName);
|
||||||
}
|
}
|
||||||
|
|
||||||
void PuppetEnvironmentBuilder::addPixelRatio() const
|
void PuppetEnvironmentBuilder::addPixelRatio() const
|
||||||
@@ -238,8 +238,7 @@ void PuppetEnvironmentBuilder::addCustomFileSelectors() const
|
|||||||
customFileSelectors.append("DesignMode");
|
customFileSelectors.append("DesignMode");
|
||||||
|
|
||||||
if (!customFileSelectors.isEmpty())
|
if (!customFileSelectors.isEmpty())
|
||||||
m_environment.appendOrSet("QML_FILE_SELECTORS",
|
m_environment.set("QML_FILE_SELECTORS", customFileSelectors.join(","));
|
||||||
customFileSelectors.join(","));
|
|
||||||
|
|
||||||
qCInfo(puppetEnvirmentBuild) << "Puppet selectors:" << customFileSelectors;
|
qCInfo(puppetEnvirmentBuild) << "Puppet selectors:" << customFileSelectors;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -704,8 +704,8 @@ Environment SquishTools::squishEnvironment()
|
|||||||
{
|
{
|
||||||
Environment environment = Environment::systemEnvironment();
|
Environment environment = Environment::systemEnvironment();
|
||||||
if (!toolsSettings.licenseKeyPath.isEmpty())
|
if (!toolsSettings.licenseKeyPath.isEmpty())
|
||||||
environment.prependOrSet("SQUISH_LICENSEKEY_DIR", toolsSettings.licenseKeyPath.nativePath());
|
environment.set("SQUISH_LICENSEKEY_DIR", toolsSettings.licenseKeyPath.nativePath());
|
||||||
environment.prependOrSet("SQUISH_PREFIX", toolsSettings.squishPath.nativePath());
|
environment.set("SQUISH_PREFIX", toolsSettings.squishPath.nativePath());
|
||||||
return environment;
|
return environment;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ private slots:
|
|||||||
+ QLatin1String(TEST_RELATIVE_LIBEXEC_PATH));
|
+ QLatin1String(TEST_RELATIVE_LIBEXEC_PATH));
|
||||||
LauncherInterface::setPathToLauncher(libExecPath);
|
LauncherInterface::setPathToLauncher(libExecPath);
|
||||||
|
|
||||||
testEnv.appendOrSet("TEST_ECHO", "1");
|
testEnv.set("TEST_ECHO", "1");
|
||||||
|
|
||||||
if (HostOsInfo::isWindowsHost())
|
if (HostOsInfo::isWindowsHost())
|
||||||
newLine = "\r\n";
|
newLine = "\r\n";
|
||||||
|
|||||||
Reference in New Issue
Block a user