mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 21:39:07 +00:00
Break cyclic dep between cli and cli_utils
This commit is contained in:
parent
f5fac8230f
commit
24216d7a97
3 changed files with 2 additions and 8 deletions
|
@ -1,12 +1,10 @@
|
|||
use crate::helpers::{example_file, run_cmd, run_roc};
|
||||
use const_format::concatcp;
|
||||
use criterion::{black_box, measurement::Measurement, BenchmarkGroup};
|
||||
use roc_cli::CMD_BUILD;
|
||||
use std::{path::Path, thread};
|
||||
|
||||
const CFOLD_STACK_SIZE: usize = 8192 * 100000;
|
||||
|
||||
const OPTIMIZE_FLAG: &str = concatcp!("--", roc_cli::FLAG_OPTIMIZE);
|
||||
const OPTIMIZE_FLAG: &str = "--optimize";
|
||||
|
||||
fn exec_bench_w_input<T: Measurement>(
|
||||
file: &Path,
|
||||
|
@ -16,7 +14,7 @@ fn exec_bench_w_input<T: Measurement>(
|
|||
bench_group_opt: Option<&mut BenchmarkGroup<T>>,
|
||||
) {
|
||||
let compile_out = run_roc(
|
||||
[CMD_BUILD, OPTIMIZE_FLAG, file.to_str().unwrap()],
|
||||
["build", OPTIMIZE_FLAG, file.to_str().unwrap()],
|
||||
&[stdin_str],
|
||||
);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue