mirror of
https://github.com/python/cpython.git
synced 2025-12-31 04:23:37 +00:00
gh-111046: for wasi-threads, export memory as well via the linker (GH-111099)
This commit is contained in:
parent
0937b11b89
commit
5dfa71769f
3 changed files with 11 additions and 0 deletions
5
configure
generated
vendored
5
configure
generated
vendored
|
|
@ -9268,10 +9268,15 @@ then :
|
|||
# without this, configure fails to find pthread_create, sem_init,
|
||||
# etc because they are only available in the sysroot for
|
||||
# wasm32-wasi-threads.
|
||||
# Note: wasi-threads requires --import-memory.
|
||||
# Note: wasi requires --export-memory.
|
||||
# Note: --export-memory is implicit unless --import-memory is given
|
||||
# Note: this requires LLVM >= 16.
|
||||
as_fn_append CFLAGS " -target wasm32-wasi-threads -pthread"
|
||||
as_fn_append CFLAGS_NODIST " -target wasm32-wasi-threads -pthread"
|
||||
as_fn_append LDFLAGS_NODIST " -target wasm32-wasi-threads -pthread"
|
||||
as_fn_append LDFLAGS_NODIST " -Wl,--import-memory"
|
||||
as_fn_append LDFLAGS_NODIST " -Wl,--export-memory"
|
||||
as_fn_append LDFLAGS_NODIST " -Wl,--max-memory=10485760"
|
||||
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue