X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=Makefile.libretro;h=cf8e08070314753abd66541972d4ac9f0f6cf5b8;hb=657d141e82b111e6719f499677e035cb443df537;hp=03c8a1dc86f0188e8a0aa370896fbb3a4f52c786;hpb=b4f2c7d997002478d75fa97b7c5f3b14dad8b562;p=pcsx_rearmed.git diff --git a/Makefile.libretro b/Makefile.libretro index 03c8a1dc..cf8e0807 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) include/arm_features.h | grep -q HAVE_NEON32 && echo 1 || echo 0) endif ifeq ($(NO_UNDEF_CHECK)$(shell ld -v 2> /dev/null | awk '{print $$1}'),GNU) MAIN_LDFLAGS += -Wl,--no-undefined @@ -535,7 +539,7 @@ ifdef ALLOW_LIGHTREC_ON_ARM CFLAGS += -DALLOW_LIGHTREC_ON_ARM endif ifeq ($(BUILTIN_GPU),neon) -ifeq ($(ARCH),i686) +ifneq (,$(findstring $(ARCH),x86 i686)) CFLAGS_GPU_NEON ?= -msse2 # required endif ifeq ($(ARCH),x86_64) @@ -560,6 +564,16 @@ NO_CONFIG_MAK = yes #endif #endif +$(info TARGET: $(TARGET)) +$(info platform: $(platform)) +$(info ARCH: $(ARCH)) +$(info DYNAREC: $(DYNAREC)) +$(info BUILTIN_GPU: $(BUILTIN_GPU)) +$(info CC: $(CC)) +$(info CFLAGS: $(CFLAGS)) +$(info MAIN_LDLIBS: $(MAIN_LDLIBS)) +$(info ) + include Makefile # no special AS needed for gpu_neon