X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=Makefile.libretro;h=42843bc69320bc9da19cce0cd4e6cc6a93afe187;hb=8e224f98516144722076e79b372c67ba7ded7577;hp=cf8e08070314753abd66541972d4ac9f0f6cf5b8;hpb=657d141e82b111e6719f499677e035cb443df537;p=pcsx_rearmed.git diff --git a/Makefile.libretro b/Makefile.libretro index cf8e0807..42843bc6 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)) @@ -210,6 +210,8 @@ else ifeq ($(platform), libnx) CFLAGS += -DARM -D__aarch64__=1 -march=armv8-a -mtune=cortex-a57 -mtp=soft -DHAVE_INTTYPES -DLSB_FIRST -ffast-math -mcpu=cortex-a57+crc+fp+simd -ffunction-sections CFLAGS += -ftree-vectorize CFLAGS += -Ifrontend/switch -ftree-vectorize + NO_POSIX_MEMALIGN := 1 + NO_PTHREAD=1 LIBPTHREAD := STATIC_LINKING=1 BUILTIN_GPU = neon @@ -263,6 +265,8 @@ else ifeq ($(platform), vita) DYNAREC = ari64 ARCH = arm STATIC_LINKING = 1 + NO_PTHREAD=1 + NO_POSIX_MEMALIGN := 1 # CTR(3DS) else ifeq ($(platform), ctr) @@ -270,7 +274,7 @@ else ifeq ($(platform), ctr) CC = $(DEVKITARM)/bin/arm-none-eabi-gcc$(EXE_EXT) CXX = $(DEVKITARM)/bin/arm-none-eabi-g++$(EXE_EXT) AR = $(DEVKITARM)/bin/arm-none-eabi-ar$(EXE_EXT) - CFLAGS += -DARM11 -D_3DS -DNO_OS -DNO_DYLIB -DNO_SOCKET -DTHREAD_ENABLED -DGPU_UNAI_USE_FLOATMATH -DGPU_UNAI_USE_FLOAT_DIV_MULTINV + CFLAGS += -DARM11 -D_3DS -DNO_OS -DNO_DYLIB -DNO_SOCKET -DGPU_UNAI_USE_FLOATMATH -DGPU_UNAI_USE_FLOAT_DIV_MULTINV CFLAGS += -march=armv6k -mtune=mpcore -mfloat-abi=hard -marm -mfpu=vfp -mtp=soft CFLAGS += -Wall -mword-relocations CFLAGS += -fomit-frame-pointer -ffast-math -funroll-loops @@ -287,6 +291,7 @@ else ifeq ($(platform), ctr) ARCH = arm HAVE_NEON = 0 STATIC_LINKING = 1 + NO_POSIX_MEMALIGN := 1 # Xbox 360 else ifeq ($(platform), xenon) @@ -505,9 +510,13 @@ else ifeq ($(platform), emscripten) else TARGET := $(TARGET_NAME)_libretro.dll PLATFORM = libretro - MAIN_LDFLAGS += -static-libgcc -static-libstdc++ -s + MAIN_LDFLAGS += -static-libgcc -static-libstdc++ +ifneq ($(DEBUG),1) + MAIN_LDFLAGS += -s +endif CFLAGS += -D__WIN32__ -DNO_DYLIB MMAP_WIN32=1 + NO_PTHREAD=1 MAIN_LDLIBS += -lws2_32 LIBPTHREAD := LIBDL :=