mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
gh-101538: Add experimental wasi-threads build (#101537)
Co-authored-by: Brett Cannon <brett@python.org> Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
This commit is contained in:
parent
13237a2da8
commit
d8f87cdf94
5 changed files with 53 additions and 3 deletions
|
@ -480,7 +480,6 @@ class BuildProfile:
|
|||
cmd.append(f"--{opt}-wasm-dynamic-linking")
|
||||
|
||||
if self.pthreads is not None:
|
||||
assert self.host.is_emscripten
|
||||
opt = "enable" if self.pthreads else "disable"
|
||||
cmd.append(f"--{opt}-wasm-pthreads")
|
||||
|
||||
|
@ -745,6 +744,13 @@ _profiles = [
|
|||
support_level=SupportLevel.supported,
|
||||
host=Host.wasm32_wasi,
|
||||
),
|
||||
# wasm32-wasi-threads
|
||||
BuildProfile(
|
||||
"wasi-threads",
|
||||
support_level=SupportLevel.experimental,
|
||||
host=Host.wasm32_wasi,
|
||||
pthreads=True,
|
||||
),
|
||||
# no SDK available yet
|
||||
# BuildProfile(
|
||||
# "wasm64-wasi",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue