mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-01 15:51:12 +00:00
fmt
This commit is contained in:
parent
d73d1fee47
commit
81d5e47f40
2 changed files with 7 additions and 3 deletions
|
@ -78,8 +78,12 @@ fn bench_cmd<T: Measurement>(
|
||||||
#[cfg(unix)]
|
#[cfg(unix)]
|
||||||
use rlimit::{setrlimit, Resource};
|
use rlimit::{setrlimit, Resource};
|
||||||
#[cfg(unix)]
|
#[cfg(unix)]
|
||||||
setrlimit(Resource::STACK, CFOLD_STACK_SIZE as u64, CFOLD_STACK_SIZE as u64)
|
setrlimit(
|
||||||
.expect("Failed to increase stack limit.");
|
Resource::STACK,
|
||||||
|
CFOLD_STACK_SIZE as u64,
|
||||||
|
CFOLD_STACK_SIZE as u64,
|
||||||
|
)
|
||||||
|
.expect("Failed to increase stack limit.");
|
||||||
|
|
||||||
#[cfg(windows)]
|
#[cfg(windows)]
|
||||||
println!("Skipping the cfold benchmark on windows, I can't adjust the stack size and use criterion at the same time.");
|
println!("Skipping the cfold benchmark on windows, I can't adjust the stack size and use criterion at the same time.");
|
||||||
|
|
|
@ -17,4 +17,4 @@ libc = "0.2.106"
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = ["platform"]
|
default = ["platform"]
|
||||||
platform = []
|
platform = []
|
Loading…
Add table
Add a link
Reference in a new issue