From bd6878794c900870e435e97877be4d0f76b9c41d Mon Sep 17 00:00:00 2001 From: Luke Boswell Date: Tue, 9 Jul 2024 16:05:33 +1000 Subject: [PATCH] add --build-host for benchmark tests --- crates/cli_utils/src/bench_utils.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/crates/cli_utils/src/bench_utils.rs b/crates/cli_utils/src/bench_utils.rs index 253f67b927..95b7716c76 100644 --- a/crates/cli_utils/src/bench_utils.rs +++ b/crates/cli_utils/src/bench_utils.rs @@ -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( file: &Path, @@ -14,7 +15,12 @@ fn exec_bench_w_input( bench_group_opt: Option<&mut BenchmarkGroup>, ) { let compile_out = run_roc( - ["build", OPTIMIZE_FLAG, file.to_str().unwrap()], + [ + "build", + BUILD_HOST_FLAG, + OPTIMIZE_FLAG, + file.to_str().unwrap(), + ], &[stdin_str], &[], );