Skip to content

sys.platform of wasm32-wasi build to wasi instead of unknown #4539

@youknowone

Description

@youknowone

CPython part: https://github.com/RustPython/RustPython/pull/4537/files#diff-d925268c057737ba320c489ca302fd5125f14840d22e50cfe226bdb5bb88ba8dR517-R518

actual:

$ cargo build --release --target wasm32-wasi --no-default-features --features stdlib,encodings,threading,freeze-stdlib
$ wasmer run --env RUST_BACKTRACE=full --dir . target/wasm32-wasi/release/rustpython.wasm -- -c 'import sys; print(sys.platform)'
unknown

expected:

wasi

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions