forked from qt-creator/qt-creator
QtSupport: Simplify detection of embedded linux Qt versions
The temporary Qt version never has a qmake path set, so it always returns an empty list of qtAbis. Make that explicit:-) Change-Id: I74b65897e5a9daddae638a99c38fa1a95f8a3086 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -127,15 +127,7 @@ EmbeddedLinuxQtVersionFactory::EmbeddedLinuxQtVersionFactory()
|
||||
setSupportedType(EMBEDDED_LINUX_QT);
|
||||
setPriority(10);
|
||||
|
||||
setRestrictionChecker([](const SetupData &) {
|
||||
const EmbeddedLinuxQtVersion tempVersion;
|
||||
const ProjectExplorer::Abis abis = tempVersion.qtAbis();
|
||||
|
||||
// Note: This fails for e.g. intel/meego cross builds on x86 linux machines.
|
||||
return abis.count() == 1
|
||||
&& abis.at(0).os() == ProjectExplorer::Abi::LinuxOS
|
||||
&& !ProjectExplorer::Abi::hostAbi().isCompatibleWith(abis.at(0));
|
||||
});
|
||||
setRestrictionChecker([](const SetupData &) { return false; });
|
||||
}
|
||||
|
||||
} // Internal
|
||||
|
Reference in New Issue
Block a user