diff options
| author | Dan Gohman <sunfish@mozilla.com> | 2019-10-17 16:09:32 -0700 |
|---|---|---|
| committer | Dan Gohman <sunfish@mozilla.com> | 2019-10-17 16:16:35 -0700 |
| commit | b25e3238c76a4df767b4a929011ed47c479ed115 (patch) | |
| tree | 8e7491454319743d438287e02793311978e61590 /src/libstd/sys/unix/stack_overflow.rs | |
| parent | b04338087eed5f26c72bdb0e426dc38e215e2dbb (diff) | |
| download | rust-b25e3238c76a4df767b4a929011ed47c479ed115.tar.gz rust-b25e3238c76a4df767b4a929011ed47c479ed115.zip | |
Don't add `argc` and `argv` arguments to `main` on WASI.
Add a target setting to allow targets to specify whether the generated `main` function should be passed `argc` and `argv` arguments. Set it to false on wasm32-wasi, since WASI's `args::args()` calls into the WASI APIs itself. This will allow the WASI toolchain to avoid linking and running command-line argument initialization code when the arguments aren't actually needed.
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions
