From 2ea8a96c595c83914505970883d096bd55dcc75d Mon Sep 17 00:00:00 2001 From: notaz Date: Fri, 7 Jul 2023 22:36:28 +0300 Subject: [PATCH] make: patch detection yet more findstring could pick '#undef ' --- Makefile.libretro | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile.libretro b/Makefile.libretro index cf8e0807..069290cc 100644 --- a/Makefile.libretro +++ b/Makefile.libretro @@ -49,12 +49,12 @@ EXTRA_LDFLAGS = # select some defaults ifneq (,$(findstring $(ARCH_DETECTED),arm aarch64)) DYNAREC = ari64 -ifneq ($(findstring __thumb__,$(shell $(CC) -E -dD $(CFLAGS) include/arm_features.h)),) +ifneq (,$(shell $(CC) -E -dD $(CFLAGS) include/arm_features.h | grep 'define __thumb__')) # 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 +ifneq (,$(shell $(CC) -E -dD $(CFLAGS) include/arm_features.h | grep 'HAVE_NEON32')) + BUILTIN_GPU = neon endif endif ifneq (,$(findstring $(ARCH_DETECTED),i686 x86_64 aarch64)) -- 2.39.5