diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-10-19 07:10:10 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-10-19 07:10:10 +0200 |
| commit | 3e1da91349abe9e6f793f246186915b6192e2011 (patch) | |
| tree | e79b95fd297e775f68d88839f20dd8c3dfe67ed8 /src/libstd/sys/unix/stack_overflow.rs | |
| parent | ed4c2c2a5f869dbb47d3079437f2f1e1a0aab027 (diff) | |
| parent | b25e3238c76a4df767b4a929011ed47c479ed115 (diff) | |
| download | rust-3e1da91349abe9e6f793f246186915b6192e2011.tar.gz rust-3e1da91349abe9e6f793f246186915b6192e2011.zip | |
Rollup merge of #65576 - sunfishcode:main-needs-argc-argv, r=alexcrichton
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
