forked from qt-creator/qt-creator
Prefer ARM/X86_64 for Android, prefer 64bit
Change-Id: I8729f6975fc9d99f3ef00a087d4f4eebd0f7e8e5 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io> Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
This commit is contained in:
committed by
BogDan Vatra
parent
c84d12227d
commit
661bec83d4
@@ -703,15 +703,19 @@ void QMakeStep::updateAbiWidgets()
|
||||
|
||||
if (selectedAbis.isEmpty()) {
|
||||
if (qtVersion->hasAbi(Abi::LinuxOS, Abi::AndroidLinuxFlavor)) {
|
||||
// Prefer ARM for Android, prefer 32bit.
|
||||
// Prefer ARM/X86_64 for Android, prefer 64bit.
|
||||
for (const Abi &abi : abis) {
|
||||
if (abi.param() == ProjectExplorer::Constants::ANDROID_ABI_ARMEABI_V7A)
|
||||
if (abi.param() == ProjectExplorer::Constants::ANDROID_ABI_ARM64_V8A) {
|
||||
selectedAbis.append(abi.param());
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (selectedAbis.isEmpty()) {
|
||||
for (const Abi &abi : abis) {
|
||||
if (abi.param() == ProjectExplorer::Constants::ANDROID_ABI_ARM64_V8A)
|
||||
if (abi.param() == ProjectExplorer::Constants::ANDROID_ABI_X86_64) {
|
||||
selectedAbis.append(abi.param());
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
} else if (qtVersion->hasAbi(Abi::DarwinOS) && !isIos(target()->kit()) && HostOsInfo::isRunningUnderRosetta()) {
|
||||
|
Reference in New Issue
Block a user