forked from qt-creator/qt-creator
Utils: Compile with QT_NO_CAST_FROM_ASCII.
Change-Id: I5cd5607fcd3311915217a1615b948587ef808cfa Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
This commit is contained in:
@@ -663,12 +663,13 @@ void QtcProcess::start()
|
||||
// That's brain dead, and we work around it
|
||||
#if defined(Q_OS_UNIX)
|
||||
# if defined(Q_OS_MAC)
|
||||
static const char libraryPath[] = "DYLD_LIBRARY_PATH";
|
||||
static const char libraryPathC[] = "DYLD_LIBRARY_PATH";
|
||||
# else
|
||||
static const char libraryPath[] = "LD_LIBRARY_PATH";
|
||||
static const char libraryPathC[] = "LD_LIBRARY_PATH";
|
||||
# endif
|
||||
const QString libraryPath = QLatin1String(libraryPathC);
|
||||
if (env.constFind(libraryPath) == env.constEnd())
|
||||
env.set(libraryPath, QLatin1String(""));
|
||||
env.set(libraryPath, QString());
|
||||
#endif
|
||||
QProcess::setEnvironment(env.toStringList());
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user