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):
3636
3737 # Thread support (via SharedArrayBuffer).
3838 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" ])
4141
4242 # 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'" ])
4549
4650 env .Append (CPPDEFINES = ["WEB_ENABLED" , "UNIX_ENABLED" ])
4751
You can’t perform that action at this time.
0 commit comments