From: Ethan O'Brien <77750390+ethanaobrien@users.noreply.github.com> Date: Fri, 2 Feb 2024 16:41:12 +0000 (-0600) Subject: Fix emscripten build target X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=06cdf83a3a30bfb8cafee768dbe83bbaef6c8ddd;p=pcsx_rearmed.git Fix emscripten build target --- diff --git a/Makefile.libretro b/Makefile.libretro index 1169d892..ab62610b 100644 --- a/Makefile.libretro +++ b/Makefile.libretro @@ -544,7 +544,11 @@ else ifeq ($(platform), miyoo) 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 diff --git a/frontend/main.c b/frontend/main.c index 53f31b0a..65114e3b 100644 --- a/frontend/main.c +++ b/frontend/main.c @@ -31,7 +31,9 @@ #include "arm_features.h" #include "revision.h" -#if defined(__has_builtin) +#if defined(__EMSCRIPTEN__) +#define DO_CPU_CHECKS 0 +#elif defined(__has_builtin) #define DO_CPU_CHECKS __has_builtin(__builtin_cpu_init) #elif defined(__x86_64__) || defined(__i386__) #define DO_CPU_CHECKS 1