Fix Windows build

Change-Id: I0929c82cc3f03792627ab02bd3090dac2f997609
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Christian Kandeler
2019-06-07 15:36:27 +02:00
parent 1f6c0f63a7
commit c5d63c8f14

View File

@@ -94,7 +94,7 @@ static bool generateEnvironmentSettings(Utils::Environment &env,
= Utils::FilePath::fromString(QString::fromLocal8Bit(qgetenv("COMSPEC")));
// Windows SDK setup scripts require command line switches for environment expansion.
QString cmdArguments = " /E:ON /V:ON /c \"" + QDir::toNativeSeparators(saver.fileName()) + '"';
run.setCommand(Utils::CommandLine(cmdPath, cmdArguments));
run.setCommand(Utils::CommandLine(cmdPath, cmdArguments, Utils::CommandLine::Raw));
run.start();
if (!run.waitForStarted()) {