add --build-host for benchmark tests

This commit is contained in:
Luke Boswell 2024-07-09 16:05:33 +10:00
parent f515311915
commit bd6878794c
No known key found for this signature in database
GPG key ID: F6DB3C9DB47377B0

View file

@ -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],
&[],
);