Toolchains: Fix MSCV.

Need /E:ON, V:ON for cmd.exe, do not pass empty environment
to QtcProcess.
This commit is contained in:
Friedemann Kleint
2011-02-28 10:14:52 +01:00
parent 9e0cd9406c
commit 9ea68e7805
3 changed files with 64 additions and 26 deletions

View File

@@ -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 {