File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -36,12 +36,16 @@ def generate(env):
36
36
37
37
# Thread support (via SharedArrayBuffer).
38
38
if env ["threads" ]:
39
- env .Append (CCFLAGS = ["-s" , "USE_PTHREADS =1" ])
40
- env .Append (LINKFLAGS = ["-s" , "USE_PTHREADS =1" ])
39
+ env .Append (CCFLAGS = ["-sUSE_PTHREADS =1" ])
40
+ env .Append (LINKFLAGS = ["-sUSE_PTHREADS =1" ])
41
41
42
42
# Build as side module (shared library).
43
- env .Append (CPPFLAGS = ["-s" , "SIDE_MODULE=1" ])
44
- env .Append (LINKFLAGS = ["-s" , "SIDE_MODULE=1" ])
43
+ env .Append (CPPFLAGS = ["-sSIDE_MODULE=1" ])
44
+ env .Append (LINKFLAGS = ["-sSIDE_MODULE=1" ])
45
+
46
+ # Force wasm longjmp mode.
47
+ env .Append (CCFLAGS = ["-sSUPPORT_LONGJMP='wasm'" ])
48
+ env .Append (LINKFLAGS = ["-sSUPPORT_LONGJMP='wasm'" ])
45
49
46
50
env .Append (CPPDEFINES = ["WEB_ENABLED" , "UNIX_ENABLED" ])
47
51
You can’t perform that action at this time.
0 commit comments