This commit is contained in:
Anton-4 2022-03-01 16:41:09 +01:00
parent d73d1fee47
commit 81d5e47f40
2 changed files with 7 additions and 3 deletions

View file

@ -78,8 +78,12 @@ fn bench_cmd<T: Measurement>(
#[cfg(unix)]
use rlimit::{setrlimit, Resource};
#[cfg(unix)]
setrlimit(Resource::STACK, CFOLD_STACK_SIZE as u64, CFOLD_STACK_SIZE as u64)
.expect("Failed to increase stack limit.");
setrlimit(
Resource::STACK,
CFOLD_STACK_SIZE as u64,
CFOLD_STACK_SIZE as u64,
)
.expect("Failed to increase stack limit.");
#[cfg(windows)]
println!("Skipping the cfold benchmark on windows, I can't adjust the stack size and use criterion at the same time.");