about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper
diff options
context:
space:
mode:
authorDan Gohman <dev@sunfishcode.online>2023-02-09 19:01:47 -0800
committerDan Gohman <dev@sunfishcode.online>2023-02-09 19:03:42 -0800
commit4b1157509f96e4fffe7ef40ab8cbaa08704d36cc (patch)
tree8d8a262f28702e79ae4fded774ff658494268269 /compiler/rustc_llvm/llvm-wrapper
parent8996ea93b6e554148c4286e62b613f12a3ee505c (diff)
downloadrust-4b1157509f96e4fffe7ef40ab8cbaa08704d36cc.tar.gz
rust-4b1157509f96e4fffe7ef40ab8cbaa08704d36cc.zip
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