Skip to content

Commit 2c77b58

Browse files
committed
Merged revision(s) 17908 from trunk/OpenMPT:
[Fix] build: Makefile: Emscripten: Work-around <emscripten-core/emscripten#17897> by passing -fno-inline-functions when using -s WASM=2 or -s WASM=0. ........ git-svn-id: https://source.openmpt.org/svn/openmpt/branches/OpenMPT-1.30@17909 56274372-70c3-4bfc-bfc3-4c3a0b034d27
1 parent 0a17fa3 commit 2c77b58

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

build/make/config-emscripten.mk

+10
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,11 @@ CXXFLAGS +=
8080
CFLAGS +=
8181
LDFLAGS += -s WASM=2 -s LEGACY_VM_SUPPORT=1 -Wno-transpile
8282

83+
# work-around <https://github.com/emscripten-core/emscripten/issues/17897>.
84+
CXXFLAGS += -fno-inline-functions
85+
CFLAGS += -fno-inline-functions
86+
LDFLAGS += -fno-inline-functions
87+
8388
LDFLAGS += -s ALLOW_MEMORY_GROWTH=1
8489

8590
else ifeq ($(EMSCRIPTEN_TARGET),audioworkletprocessor)
@@ -107,6 +112,11 @@ CXXFLAGS +=
107112
CFLAGS +=
108113
LDFLAGS += -s WASM=0 -s LEGACY_VM_SUPPORT=1 -Wno-transpile
109114

115+
# work-around <https://github.com/emscripten-core/emscripten/issues/17897>.
116+
CXXFLAGS += -fno-inline-functions
117+
CFLAGS += -fno-inline-functions
118+
LDFLAGS += -fno-inline-functions
119+
110120
LDFLAGS += -s ALLOW_MEMORY_GROWTH=1
111121

112122
endif

0 commit comments

Comments
 (0)