Commit 6ec9dd10 authored by Friedemann Kleint's avatar Friedemann Kleint

Fix warning about running processes with empty environment.

When detecting MSVC installations.

Change-Id: I1d136c6815fe928541620f3e004be4afc0aef39b
Reviewed-by: default avatarDaniel Teske <>
parent 1dbc5e98
...@@ -152,7 +152,7 @@ QString AbstractMsvcToolChain::makeCommand(const Utils::Environment &environment ...@@ -152,7 +152,7 @@ QString AbstractMsvcToolChain::makeCommand(const Utils::Environment &environment
Utils::FileName AbstractMsvcToolChain::compilerCommand() const Utils::FileName AbstractMsvcToolChain::compilerCommand() const
{ {
Utils::Environment env; Utils::Environment env = Utils::Environment::systemEnvironment();
addToEnvironment(env); addToEnvironment(env);
return Utils::FileName::fromString(env.searchInPath("cl.exe")); return Utils::FileName::fromString(env.searchInPath("cl.exe"));
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment