about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-02-10 15:28:48 +0100
committerGitHub <noreply@github.com>2023-02-10 15:28:48 +0100
commita4c64b9c0e24e2436a5cc0a75ab65d2738a73bab (patch)
tree357c2482fe899982b22292e1919e42a9700a531d /compiler/rustc_llvm/llvm-wrapper
parentd8e4d99001660334bdc28704cda6f63d846c90da (diff)
parent4b1157509f96e4fffe7ef40ab8cbaa08704d36cc (diff)
downloadrust-a4c64b9c0e24e2436a5cc0a75ab65d2738a73bab.tar.gz
rust-a4c64b9c0e24e2436a5cc0a75ab65d2738a73bab.zip
Rollup merge of #107866 - sunfishcode:sunfishcode/wasi-lazy-environ, r=workingjubilee
Allow wasi-libc to initialize its environment variables lazily.

Use `__wasilibc_get_environ()` to read the environment variable list from wasi-libc instead of using `environ`. `environ` is a global variable which effectively requires wasi-libc to initialize the environment variables eagerly, and `__wasilibc_get_environ()` is specifically designed to be an alternative that lets wasi-libc intiailize its environment variables lazily.

This should have the side effect of fixing at least some of the cases of #107635.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper')
0 files changed, 0 insertions, 0 deletions