about summary refs log tree commit diff
path: root/compiler/rustc_interface/src/util.rs
diff options
context:
space:
mode:
authorJubilee Young <workingjubilee@gmail.com>2024-03-21 14:16:07 -0700
committerJubilee Young <workingjubilee@gmail.com>2024-03-21 14:49:02 -0700
commit542533865aa2d828665d96047ed575267eed7ac6 (patch)
tree8a5487ee348b15557cee1eeb8c34286d62a02140 /compiler/rustc_interface/src/util.rs
parent60891cab33c99c0be933ddd54008513af7e49cd9 (diff)
downloadrust-542533865aa2d828665d96047ed575267eed7ac6.tar.gz
rust-542533865aa2d828665d96047ed575267eed7ac6.zip
Suggest using RUST_MIN_STACK if rustc overflowed
Diffstat (limited to 'compiler/rustc_interface/src/util.rs')
-rw-r--r--compiler/rustc_interface/src/util.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_interface/src/util.rs b/compiler/rustc_interface/src/util.rs
index 7ecd7166d1c..d09f8d7d7cf 100644
--- a/compiler/rustc_interface/src/util.rs
+++ b/compiler/rustc_interface/src/util.rs
@@ -48,8 +48,8 @@ pub fn add_configuration(cfg: &mut Cfg, sess: &mut Session, codegen_backend: &dy
     }
 }
 
-static STACK_SIZE: OnceLock<usize> = OnceLock::new();
-const DEFAULT_STACK_SIZE: usize = 8 * 1024 * 1024;
+pub static STACK_SIZE: OnceLock<usize> = OnceLock::new();
+pub const DEFAULT_STACK_SIZE: usize = 8 * 1024 * 1024;
 
 fn init_stack_size() -> usize {
     // Obey the environment setting or default