Repository navigation
Conversation
configure accepted the option for WASI but left the link flags unimplemented, so they had to be supplied through the environment. * LDSHARED imports a module's undefined symbols instead of failing on them, so the dynamic loader can resolve them. The branch that was meant to set it was unreachable. * On wasm32-wasip1, python.wasm is linked as a position-independent executable that imports its memory and exports its symbols. Later WASI versions link a component and are left as they are. The default build is unchanged. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Yousef02
requested review from
AA-Turner,
corona10,
emmatyping,
erlend-aasland and
itamaro
as code owners
December 3, 2026 22:05
|
📖 2 files modified Preview · build overview · cpython-previews · built Dec. 3, 2026, 10:09 p.m. UTC |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
configureaccepted the option on WASI but set no link flags.LDSHAREDnow imports a module's undefined symbols (--unresolved-symbols=import-dynamic). The branch meant to set it was unreachable.wasm32-wasip1,python.wasmis linked as a position-independent executable that imports its memory and exports its symbols. WASI 0.2+ links a component and is not changed.The default build's link line is unchanged. Running the result needs a host-side dynamic loader, so CI cannot exercise
dlopenyet. See the issue for what was tested and the testing question.configurewas regenerated withTools/build/regen-configure.sh.🤖 Generated with Claude Code
--enable-wasm-dynamic-linkingdoes not produce a dynamic build on WASI #163114