From: notaz Date: Fri, 7 Jul 2023 17:54:26 +0000 (+0300) Subject: make: tune neon detection yet more X-Git-Tag: r24l~329 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=70ffca2435f9ba00c5c9173b3fd2cd0236b1f97b;p=pcsx_rearmed.git make: tune neon detection yet more Tried some arm32 board and it misbehaved again. --- diff --git a/Makefile.libretro b/Makefile.libretro index 7b9618e1..bd26d00f 100644 --- a/Makefile.libretro +++ b/Makefile.libretro @@ -53,6 +53,9 @@ ifneq ($(findstring __thumb__,$(shell $(CC) -E -dD $(CFLAGS) include/arm_feature # must disable thumb as ari64 can't handle it CFLAGS += -marm endif +ifneq ($(findstring __ARM_NEON,$(shell $(CC) -E -dD $(CFLAGS) include/arm_features.h)),) + BUILTIN_GPU = neon +endif endif ifneq (,$(findstring $(ARCH_DETECTED),i686 x86_64 aarch64)) BUILTIN_GPU = neon @@ -525,8 +528,9 @@ endif ifndef ARCH ARCH = $(ARCH_DETECTED) endif -ifndef HAVE_NEON -HAVE_NEON = $(shell $(CC) -E -dD - < /dev/null 2> /dev/null | grep -q __ARM_NEON__ && echo 1 || echo 0) +ifndef HAVE_NEON_ASM +# asm for 32bit only +HAVE_NEON_ASM = $(shell $(CC) -E -dD $(CFLAGS) - < /dev/null 2> /dev/null | grep -q __ARM_NEON__ && echo 1 || echo 0) endif ifeq ($(NO_UNDEF_CHECK)$(shell ld -v 2> /dev/null | awk '{print $$1}'),GNU) MAIN_LDFLAGS += -Wl,--no-undefined