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. --- drivers/png/SCsub | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'drivers/png') diff --git a/drivers/png/SCsub b/drivers/png/SCsub index 26508dc612..39d296e7cf 100644 --- a/drivers/png/SCsub +++ b/drivers/png/SCsub @@ -36,7 +36,8 @@ if env["builtin_libpng"]: # Currently .ASM filter_neon.S does not compile on NT. import os - use_neon = "neon_enabled" in env and env["neon_enabled"] and os.name != "nt" + # Enable ARM NEON instructions on 32-bit Android to compile more optimized code. + use_neon = "android_arch" in env and env["android_arch"] == "armv7" and os.name != "nt" if use_neon: env_png.Append(CPPDEFINES=[("PNG_ARM_NEON_OPT", 2)]) else: -- cgit v1.2.3