1
Fork 0

Suggest using RUST_MIN_STACK if rustc overflowed

This commit is contained in:
Jubilee Young 2024-03-21 14:16:07 -07:00
parent 60891cab33
commit 542533865a
2 changed files with 7 additions and 3 deletions

View file

@ -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