diff options
author | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2021-10-12 15:27:30 +0200 |
---|---|---|
committer | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2021-10-12 16:35:49 +0200 |
commit | b1b14e5fd765df7ceda70c4c8942b5a8bfe3adb8 (patch) | |
tree | c2bdcf6817d60a9b3228c76330759603c25dd659 /drivers/png | |
parent | d5409e32f191e455f3e1a97189c1c553f3aebcfa (diff) |
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.
Diffstat (limited to 'drivers/png')
-rw-r--r-- | drivers/png/SCsub | 3 |
1 files changed, 2 insertions, 1 deletions
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: |