mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-21 19:41:14 -03:00
Fix a clipply
This commit is contained in:
5
build.rs
5
build.rs
@@ -169,10 +169,7 @@ fn has_small_stack(_: &Target) -> bool {
|
||||
// Modern macOS versions default to an 8 MiB main stack but legacy OS X have a 0.5 MiB one.
|
||||
let stack_size = unsafe { pthread_get_stacksize_np(pthread_self()) };
|
||||
const TWO_MIB: usize = 2 * 1024 * 1024 - 1;
|
||||
match stack_size {
|
||||
0..=TWO_MIB => true,
|
||||
_ => false,
|
||||
}
|
||||
stack_size <= TWO_MIB
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user