X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=Makefile.libretro;h=3edda6489b5799b91cabca9117ea3080259a85e2;hb=640c8536fb425656656288bf7c1c06310336bdb0;hp=066da82a5a5bf901212a50e4a211453e105455a8;hpb=46a38bdab1a4d9f578a368705a9e3e144fd81189;p=pcsx_rearmed.git diff --git a/Makefile.libretro b/Makefile.libretro index 066da82a..3edda648 100644 --- a/Makefile.libretro +++ b/Makefile.libretro @@ -28,6 +28,7 @@ CC_AS ?= $(CC) CFLAGS ?= TARGET_NAME := pcsx_rearmed +ARCH_DETECTED := $(shell $(CC) -dumpmachine | awk -F- '{print $$1}') GIT_VERSION := " $(shell git rev-parse --short HEAD || echo unknown)" ifneq ($(GIT_VERSION)," unknown") CFLAGS += -DGIT_VERSION=\"$(GIT_VERSION)\" @@ -50,12 +51,17 @@ ifeq ($(platform), unix) TARGET := $(TARGET_NAME)_libretro.so fpic := -fPIC THREAD_RENDERING = 1 +ifeq ($(shell uname),Linux) + LIGHTREC_CUSTOM_MAP := 1 +endif ifneq ($(findstring SunOS,$(shell uname -s)),) CC = gcc endif -ifeq ($(ARCH), arm) +ifneq (,$(findstring $(ARCH_DETECTED),arm aarch64)) + DYNAREC = ari64 + ifneq ($(findstring __thumb__,$(shell $(CC) -E -dD $(CFLAGS) include/arm_features.h)),) - # must disable thumb as recompiler can't handle it + # must disable thumb as ari64 can't handle it CFLAGS += -marm endif endif @@ -89,6 +95,7 @@ else ifeq ($(platform), linux-portable) LIBDL := LIBM := NO_UNDEF_CHECK = 1 + LIGHTREC_CUSTOM_MAP := 1 # OS X else ifeq ($(platform), osx) @@ -495,7 +502,7 @@ endif # try to autodetect stuff for the lazy ifndef ARCH -ARCH = $(shell $(CC) -dumpmachine | awk -F- '{print $$1}') +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)