forked from qt-creator/qt-creator
Android: Default to armv7 instead of arm64 (qmake & CMake)
Change-Id: I1c67a047784204a8a08c8a1ec4ec672532cbed11 Reviewed-by: BogDan Vatra <bogdan@kdab.com>
This commit is contained in:
committed by
Alessandro Portale
parent
2808f633ec
commit
40a6bef7ed
@@ -209,10 +209,10 @@ void CMakeBuildConfiguration::initialize()
|
||||
|
||||
auto androidAbis = bs->data(Android::Constants::AndroidABIs).toStringList();
|
||||
QString preferredAbi;
|
||||
if (androidAbis.contains("arm64-v8a")) {
|
||||
preferredAbi = "arm64-v8a";
|
||||
} else if (androidAbis.isEmpty() || androidAbis.contains("armeabi-v7a")) {
|
||||
if (androidAbis.contains("armeabi-v7a")) {
|
||||
preferredAbi = "armeabi-v7a";
|
||||
} else if (androidAbis.isEmpty() || androidAbis.contains("arm64-v8a")) {
|
||||
preferredAbi = "arm64-v8a";
|
||||
} else {
|
||||
preferredAbi = androidAbis.first();
|
||||
}
|
||||
|
@@ -811,8 +811,8 @@ void QMakeStepConfigWidget::updateSummaryLabel()
|
||||
item->setFlags(Qt::ItemIsUserCheckable | Qt::ItemIsEnabled | Qt::ItemIsSelectable);
|
||||
item->setCheckState(Qt::Unchecked);
|
||||
isAndroid = isAndroid && abi.osFlavor() == Abi::OSFlavor::AndroidLinuxFlavor;
|
||||
if (isAndroid && (item->text() == "arm64-v8a" ||
|
||||
(m_preferredAbiIndex == -1 && item->text() == "armeabi-v7a"))) {
|
||||
if (isAndroid && (item->text() == "armeabi-v7a" ||
|
||||
(m_preferredAbiIndex == -1 && item->text() == "arm64-v8a"))) {
|
||||
m_preferredAbiIndex = m_ui->abisListWidget->count() - 1;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user