Commit c2ef8499 authored by Daniel Teske's avatar Daniel Teske

Environment::prependOrSetLibrarySearchPath: Set DYLD_LIBRARY_PATH on OS X

Change-Id: I25a86189b9308f5ac557a705b32bb4986f1b4519
Task-number: QTCREATORBUG-14022
Reviewed-by: default avatarEike Ziller <eike.ziller@theqtcompany.com>
parent 4ffb6649
......@@ -193,6 +193,13 @@ void Environment::prependOrSetLibrarySearchPath(const QString &value)
prependOrSet(path, QDir::toNativeSeparators(value), QString(sep));
break;
}
case OsTypeMac: {
const QString sep = QLatin1String(":");
const QString nativeValue = QDir::toNativeSeparators(value);
prependOrSet(QLatin1String("DYLD_LIBRARY_PATH"), nativeValue, sep);
prependOrSet(QLatin1String("DYLD_FRAMEWORK_PATH"), nativeValue, sep);
break;
}
case OsTypeLinux:
case OsTypeOtherUnix: {
const QChar sep = QLatin1Char(':');
......@@ -200,7 +207,7 @@ void Environment::prependOrSetLibrarySearchPath(const QString &value)
prependOrSet(path, QDir::toNativeSeparators(value), QString(sep));
break;
}
default: // we could set DYLD_LIBRARY_PATH on Mac but it is unnecessary in practice
default:
break;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment