endif
CC_AS ?= $(CC)
+# workaround wrong owner in libretro infra
+GIT_VERSION1 := $(shell test -d /builds/libretro/pcsx_rearmed && git rev-parse --short HEAD 2>&1)
+ifneq ($(findstring dubious ownership,$(GIT_VERSION1)),)
+DUMMY := $(shell git config --global --add safe.directory /builds/libretro/pcsx_rearmed)
+endif
+
TARGET_NAME := pcsx_rearmed
ARCH_DETECTED := $(shell $(CC) $(CFLAGS) -dumpmachine | awk -F- '{print $$1}')
GIT_VERSION := " $(shell git rev-parse --short HEAD || echo unknown)"
BUILTIN_GPU = neon
endif
endif
-ifneq (,$(findstring $(ARCH_DETECTED),i686 x86_64 arm64 aarch64))
+ifneq (,$(filter $(ARCH_DETECTED),i686 x86_64 arm64 aarch64))
BUILTIN_GPU = neon
endif
else ifeq ($(platform), emscripten)
TARGET := $(TARGET_NAME)_libretro_$(platform).bc
fpic := -fPIC
- CFLAGS += -DNO_DYLIB
+ NO_MMAP = 1
+ CFLAGS += -DNO_DYLIB -DNO_SOCKET
+ CFLAGS += -msimd128 -ftree-vectorize
+ LIBPTHREAD :=
+ NO_PTHREAD=1
DYNAREC =
STATIC_LINKING = 1