Skip to content

Record passed args in Command even on platforms not supporting process spawning #74975

Closed
@bjorn3

Description

@bjorn3

This would be useful when running a program that normally executes a different program at the end for example wasm32-wasi. If the program debug prints the std::process::Command on errors that would make it easy for the end user to run the command outside of the wasi sandbox themselves. In my particular case I compiled rustc for wasi and want to copy-paste the linker invocations once all object files are written.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-processArea: `std::process` and `std::env`T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions