Debugger: Add kit's environment to the debug environment

QNX 7.1.0 requires some specific environment variables to be
available to the debugger.

These environment variables can be set in the kit, and then
they will reach the debugger.

Change-Id: I9debec8240a6369823cc2fcf882355ef7ca4aa28
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Cristian Adam
2021-05-19 15:06:32 +02:00
parent c6213df1c6
commit f205412e4e

View File

@@ -345,6 +345,7 @@ Runnable DebuggerKitAspect::runnable(const Kit *kit)
runnable.executable = item->command();
runnable.workingDirectory = item->workingDirectory().toString();
runnable.environment = Utils::Environment::systemEnvironment();
kit->addToEnvironment(runnable.environment);
runnable.environment.set("LC_NUMERIC", "C");
}
return runnable;