about summary refs log tree commit diff
path: root/src/libstd/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorDan Gohman <sunfish@mozilla.com>2019-10-17 16:09:32 -0700
committerDan Gohman <sunfish@mozilla.com>2019-10-17 16:16:35 -0700
commitb25e3238c76a4df767b4a929011ed47c479ed115 (patch)
tree8e7491454319743d438287e02793311978e61590 /src/libstd/sys/unix/stack_overflow.rs
parentb04338087eed5f26c72bdb0e426dc38e215e2dbb (diff)
downloadrust-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