forked from qt-creator/qt-creator
Toolchains: Fix MSCV.
Need /E:ON, V:ON for cmd.exe, do not pass empty environment to QtcProcess.
This commit is contained in:
@@ -38,6 +38,8 @@
|
||||
#include <QtCore/QDir>
|
||||
#endif
|
||||
|
||||
#include <QtCore/QDebug>
|
||||
|
||||
using namespace Utils;
|
||||
|
||||
/**
|
||||
@@ -635,6 +637,8 @@ void QtcProcess::start()
|
||||
{
|
||||
Environment env;
|
||||
if (m_haveEnv) {
|
||||
if (m_environment.size() == 0)
|
||||
qWarning("QtcProcess::start: Empty environment set when running '%s'.", qPrintable(m_command));
|
||||
env = m_environment;
|
||||
QProcess::setEnvironment(env.toStringList());
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user