forked from qt-creator/qt-creator
QtSupport: Fix host specific handling
When handling qmake on a device we need to take the device's host os into account instead of ours. Change-Id: Ice5d11dc5c623be702d1e54d6b3d0c635ff57c7a Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -1901,7 +1901,8 @@ FilePath BaseQtVersionPrivate::mkspecFromVersionInfo(const QHash<ProKey, ProStri
|
||||
|
||||
// qDebug() << "default mkspec is located at" << mkspecFullPath;
|
||||
|
||||
if (HostOsInfo::isWindowsHost()) {
|
||||
OsType osInfo = mkspecFullPath.osType();
|
||||
if (osInfo == OsTypeWindows) {
|
||||
if (!qt5) {
|
||||
QFile f2(mkspecFullPath.toString() + "/qmake.conf");
|
||||
if (f2.exists() && f2.open(QIODevice::ReadOnly)) {
|
||||
@@ -1931,7 +1932,7 @@ FilePath BaseQtVersionPrivate::mkspecFromVersionInfo(const QHash<ProKey, ProStri
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if (HostOsInfo::isMacHost()) {
|
||||
if (osInfo == OsTypeMac) {
|
||||
QFile f2(mkspecFullPath.toString() + "/qmake.conf");
|
||||
if (f2.exists() && f2.open(QIODevice::ReadOnly)) {
|
||||
while (!f2.atEnd()) {
|
||||
|
Reference in New Issue
Block a user