Skip to content

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

Closed

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

Activity

  1. changed the title [-]Check out wasi build compatible with CPython wasi build[/-] [+]Check our wasi build compatible with CPython wasi build[/+] on Feb 21, 2023
  2. youknowone commented on Feb 21, 2023

    @youknowone
    MemberAuthor

    @jhowww how about this one?

  3. changed the title [-]Check our wasi build compatible with CPython wasi build[/-] [+]sys.platform of wasm32-wasi build to `wasi` instead of `unknown`[/+] on Feb 21, 2023
  4. added
    good first issue
    C-compat
    on Feb 21, 2023
  5. jhowww commented on Feb 21, 2023

    @jhowww
    Contributor

    Thanks! I can give it a shot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

A-stdlibC-compatO-wasmgood first issue

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions