about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/errors.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-04-14 07:58:38 +0200
committerGitHub <noreply@github.com>2023-04-14 07:58:38 +0200
commitec08676716631fc7ccefb58141f891bd86cd175d (patch)
tree569ae9584613bf19f5dc7730635e5ac70c76eec8 /compiler/rustc_codegen_llvm/src/errors.rs
parentd558796beb400cceb2a2b8950f35aa518a58a586 (diff)
parent6eef755012a0f1ac0c40148b7135a125e512f6f0 (diff)
downloadrust-ec08676716631fc7ccefb58141f891bd86cd175d.tar.gz
rust-ec08676716631fc7ccefb58141f891bd86cd175d.zip
Rollup merge of #109225 - seanlinsley:patch-1, r=ChrisDenton
Clarify that RUST_MIN_STACK may be internally cached

For larger applications it's important that users set `RUST_MIN_STACK` at the start of their program because [`min_stack`](https://github.com/rust-lang/rust/blob/7d3e03666a93bd2b0f78b3933f9305832af771a5/library/std/src/sys_common/thread.rs) caches the value. Not doing so can lead to their `env::set_var` call surprisingly not having any effect.

In my own testing `RUST_MIN_STACK` had no effect until I moved it to the top of `main()`. Hopefully this clarification in the docs will help others going forward.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/errors.rs')
0 files changed, 0 insertions, 0 deletions