forked from qt-creator/qt-creator
Fix setting of LD_LIBRARY_PATH in the run environment.
It's now only done if the *target*'s OS is of generic linux flavor. Reviewed-by: con Reviewed-by: Christian Kandeler
This commit is contained in:
@@ -174,21 +174,6 @@ void Environment::prependOrSetPath(const QString &value)
|
||||
prependOrSet(QLatin1String("PATH"), QDir::toNativeSeparators(value), QString(sep));
|
||||
}
|
||||
|
||||
void Environment::prependOrSetLibrarySearchPath(const QString &value)
|
||||
{
|
||||
#ifdef Q_OS_MAC
|
||||
// we could set DYLD_LIBRARY_PATH on Mac but it is unnecessary in practice
|
||||
#elif Q_OS_WIN
|
||||
const QChar sep = QLatin1Char(';');
|
||||
const QLatin1String path("PATH");
|
||||
prependOrSet(path, QDir::toNativeSeparators(value), QString(sep));
|
||||
#elif Q_OS_UNIX
|
||||
const QChar sep = QLatin1Char(':');
|
||||
const QLatin1String path("LD_LIBRARY_PATH");
|
||||
prependOrSet(path, QDir::toNativeSeparators(value), QString(sep));
|
||||
#endif
|
||||
}
|
||||
|
||||
Environment Environment::systemEnvironment()
|
||||
{
|
||||
return Environment(QProcess::systemEnvironment());
|
||||
|
||||
Reference in New Issue
Block a user