Skip to content

Commit c38cb8a

Browse files
committed
Add emulatorjs threads flag
1 parent 3365b17 commit c38cb8a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Makefile.libretro

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Makefile for PicoDrive (libretro)
22

3+
EMULATORJS_THREADS ?= 0
4+
35
SPACE :=
46
SPACE := $(SPACE) $(SPACE)
57
BACKSLASH :=
@@ -446,6 +448,11 @@ else ifeq ($(platform), emscripten)
446448
NO_ALIGN_FUNCTIONS = 1
447449
STATIC_LINKING_LINK = 1
448450
STATIC_LINKING = 1
451+
ifeq ($(EMULATORJS_THREADS), 1)
452+
LDFLAGS += -pthread
453+
CFLAGS += -pthread
454+
CXXFLAGS += -pthread
455+
endif
449456

450457
# RS90
451458
else ifeq ($(platform), rs90)

0 commit comments

Comments
 (0)