fpic := -fPIC
SHARED := -shared -Wl,-version-script=link.T
ARCH = arm64
+ DYNAREC ?= ari64
CFLAGS += -fomit-frame-pointer -ffast-math -DARM
CPUFLAGS += -march=armv8-a+crc -mfpu=neon-fp-armv8 -mcpu=cortex-a73 -mtune=cortex-a73.cortex-a53
else ifeq ($(platform), arm64)
TARGET := $(TARGET_NAME)_libretro.so
ARCH := arm64
+ DYNAREC = ari64
BUILTIN_GPU = unai
fpic := -fPIC
CFLAGS := $(filter-out -O2, $(CFLAGS))
ifeq ($(NO_UNDEF_CHECK)$(shell ld -v 2> /dev/null | awk '{print $$1}'),GNU)
MAIN_LDFLAGS += -Wl,--no-undefined
endif
+ifdef ALLOW_LIGHTREC_ON_ARM
+CFLAGS += -DALLOW_LIGHTREC_ON_ARM
+endif
TARGET ?= libretro.so
PLATFORM = libretro
#include "../frontend/main.h"
+#if (defined(__arm__) || defined(__aarch64__)) && !defined(ALLOW_LIGHTREC_ON_ARM)
+#error "Lightrec should not be used on ARM (please specify DYNAREC=ari64 to make)"
+#endif
+
#define ARRAY_SIZE(x) (sizeof(x) ? sizeof(x) / sizeof((x)[0]) : 0)
#if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__