Skip to content

Compiletest doesn't pass environment variables to emscripten tests #31622

Open
@tomaka

Description

@tomaka

Compiletest sometimes passes environment variables when building the Command object. However in the case of emscripten, these values get passed to node instead of the program itself.

node can't propagate env vars to the javascript code, since javascript has no concept of an environment variable. It is possible to pass environment variables to the "emscripten runtime", but that must be done by manually adding some JS code in the header of the file.

For the moment the tests that rely on env vars are ignored and point to this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    O-emscriptenTarget: 50% off wasm32-unknown-musl. the savings come out of stdio.h, but hey, you get SDL!O-wasmTarget: WASM (WebAssembly), http://webassembly.org/

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions