Break cyclic dep between cli and cli_utils

This commit is contained in:
Richard Feldman 2022-07-11 20:55:08 -04:00
parent f5fac8230f
commit 24216d7a97
No known key found for this signature in database
GPG key ID: 7E4127D1E4241798
3 changed files with 2 additions and 8 deletions

View file

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