diff options
Diffstat (limited to 'tools/web.py')
-rw-r--r-- | tools/web.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/web.py b/tools/web.py index c7440bc..61fe96d 100644 --- a/tools/web.py +++ b/tools/web.py @@ -35,8 +35,9 @@ def generate(env): env["SHLIBSUFFIX"] = ".wasm" # Thread support (via SharedArrayBuffer). - env.Append(CCFLAGS=["-s", "USE_PTHREADS=1"]) - env.Append(LINKFLAGS=["-s", "USE_PTHREADS=1"]) + if env["threads"]: + env.Append(CCFLAGS=["-s", "USE_PTHREADS=1"]) + env.Append(LINKFLAGS=["-s", "USE_PTHREADS=1"]) # Build as side module (shared library). env.Append(CPPFLAGS=["-s", "SIDE_MODULE=1"]) |