Skip to content

Commit f84fbcb

Browse files
committed
Add thread compile option
1 parent 3a964a5 commit f84fbcb

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Makefile.libretro

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Makefile for PCSX ReARMed (libretro)
22

3+
EMULATORJS_THREADS ?= 0
34
DEBUG ?= 0
45
WANT_ZLIB ?= 1
56
HAVE_CHD ?= 1
@@ -541,7 +542,11 @@ else ifeq ($(platform), emscripten)
541542
fpic := -fPIC
542543
CFLAGS += -DNO_DYLIB -DNO_SOCKET
543544
CFLAGS += -msimd128 -ftree-vectorize
544-
LIBPTHREAD :=
545+
ifeq ($(EMULATORJS_THREADS), 1)
546+
THREAD_RENDERING = 1
547+
else
548+
LIBPTHREAD :=
549+
endif
545550
LIBDL :=
546551
DYNAREC := 0
547552
STATIC_LINKING = 1

0 commit comments

Comments
 (0)