mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 07:14:46 +00:00
add --build-host for benchmark tests
This commit is contained in:
parent
f515311915
commit
bd6878794c
1 changed files with 7 additions and 1 deletions
|
@ -5,6 +5,7 @@ use std::{path::Path, thread};
|
|||
const CFOLD_STACK_SIZE: usize = 8192 * 100000;
|
||||
|
||||
const OPTIMIZE_FLAG: &str = "--optimize";
|
||||
const BUILD_HOST_FLAG: &str = "--build-host";
|
||||
|
||||
fn exec_bench_w_input<T: Measurement>(
|
||||
file: &Path,
|
||||
|
@ -14,7 +15,12 @@ fn exec_bench_w_input<T: Measurement>(
|
|||
bench_group_opt: Option<&mut BenchmarkGroup<T>>,
|
||||
) {
|
||||
let compile_out = run_roc(
|
||||
["build", OPTIMIZE_FLAG, file.to_str().unwrap()],
|
||||
[
|
||||
"build",
|
||||
BUILD_HOST_FLAG,
|
||||
OPTIMIZE_FLAG,
|
||||
file.to_str().unwrap(),
|
||||
],
|
||||
&[stdin_str],
|
||||
&[],
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue