Suggest using RUST_MIN_STACK if rustc overflowed
This commit is contained in:
parent
60891cab33
commit
542533865a
2 changed files with 7 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue