Skip to content

Commit 1d92260

Browse files
Don't add pthread for Emscripten
1 parent 6d06a8b commit 1d92260

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ def blosc_extension():
6464
define_macros = []
6565

6666
# ensure pthread is properly linked on POSIX systems
67-
if os.name == 'posix':
67+
# and not when compiling to WASM.
68+
if os.name == 'posix' and "PYODIDE" not in os.environ:
6869
extra_compile_args.append('-pthread')
6970
extra_link_args.append('-pthread')
7071

0 commit comments

Comments
 (0)