From b1b14e5fd765df7ceda70c4c8942b5a8bfe3adb8 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Tue, 12 Oct 2021 15:27:30 +0200 Subject: Build for 64-bit ARM by default when compiling or exporting for Android All Android devices that support Vulkan support 64-bit ARM. This also removes NEON opt-out code for ARMv7 as pretty much all ARMv7 devices also support NEON. --- platform/android/export/export_plugin.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'platform/android/export/export_plugin.cpp') diff --git a/platform/android/export/export_plugin.cpp b/platform/android/export/export_plugin.cpp index 727ce0ae46..6ef17faf06 100644 --- a/platform/android/export/export_plugin.cpp +++ b/platform/android/export/export_plugin.cpp @@ -1644,10 +1644,12 @@ void EditorExportPlatformAndroid::get_export_options(List *r_optio } plugins_changed.clear(); - Vector abis = get_abis(); + const Vector abis = get_abis(); for (int i = 0; i < abis.size(); ++i) { - String abi = abis[i]; - bool is_default = (abi == "armeabi-v7a" || abi == "arm64-v8a"); + const String abi = abis[i]; + // All Android devices supporting Vulkan run 64-bit Android, + // so there is usually no point in exporting for 32-bit Android. + const bool is_default = abi == "arm64-v8a"; r_options->push_back(ExportOption(PropertyInfo(Variant::BOOL, "architectures/" + abi), is_default)); } -- cgit v1.2.3