In the command-line argument initialization code, remove the Mutex around the `ARGV` and `ARGC` variables, and simply check whether ARGV is non-null before dereferencing it. This way, if either of ARGV or ARGC is not initialized, we'll get an empty argument list. This allows simple cdylibs to avoid having `pthread_mutex_lock`/`pthread_mutex_unlock` appear in their symbol tables if they don't otherwise use threads. |
||
|---|---|---|
| .. | ||
| common | ||
| hermit | ||
| sgx | ||
| unix | ||
| unsupported | ||
| wasi | ||
| wasm | ||
| windows | ||
| mod.rs | ||