forked from qt-creator/qt-creator
Remove all QT_VERSION_CHECK
We only support Qt 5.6 now. Change-Id: If94864400545b057623e3af0743c55ea1e84e33b Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
committed by
Orgad Shaneh
parent
991498845a
commit
a6c17fc537
@@ -699,18 +699,6 @@ void QtcProcess::start()
|
||||
qWarning("QtcProcess::start: Empty environment set when running '%s'.", qPrintable(m_command));
|
||||
env = m_environment;
|
||||
|
||||
#if QT_VERSION < QT_VERSION_CHECK(5, 5, 0)
|
||||
// QTBUG-49694
|
||||
// If the process environment has no libraryPath,
|
||||
// Qt will copy creator's libraryPath into the process environment.
|
||||
// That's brain dead, and we work around it
|
||||
if (osType != OsTypeWindows) { // a.k.a "Unixoid"
|
||||
const QString libraryPath =
|
||||
QLatin1String(osType == OsTypeMac ? "DYLD_LIBRARY_PATH" : "LD_LIBRARY_PATH");
|
||||
if (env.constFind(libraryPath) == env.constEnd())
|
||||
env.set(libraryPath, QString());
|
||||
}
|
||||
#endif
|
||||
QProcess::setEnvironment(env.toStringList());
|
||||
} else {
|
||||
env = Environment::systemEnvironment();
|
||||
|
||||
Reference in New Issue
Block a user