update missed uses of roc_cli::build

This commit is contained in:
Brendan Hansknecht 2023-03-04 10:15:42 -08:00
parent 7a944113a0
commit 9894f52afd
No known key found for this signature in database
GPG key ID: 0EA784685083E75B

View file

@ -7,7 +7,8 @@ static BUILD_ONCE: std::sync::Once = std::sync::Once::new();
#[cfg(all(target_os = "linux"))] #[cfg(all(target_os = "linux"))]
fn build_host() { fn build_host() {
use roc_linker::{build_and_preprocess_host, preprocessed_host_filename}; use roc_build::program::build_and_preprocess_host;
use roc_linker::preprocessed_host_filename;
let platform_main_roc = std::env::current_dir() let platform_main_roc = std::env::current_dir()
.unwrap() .unwrap()
@ -44,7 +45,7 @@ fn valgrind_test(source: &str) {
#[cfg(target_os = "linux")] #[cfg(target_os = "linux")]
fn valgrind_test_linux(source: &str) { fn valgrind_test_linux(source: &str) {
use roc_cli::build::BuiltFile; use roc_build::program::BuiltFile;
// the host is identical for all tests so we only want to build it once // the host is identical for all tests so we only want to build it once
BUILD_ONCE.call_once(build_host); BUILD_ONCE.call_once(build_host);
@ -80,7 +81,7 @@ fn valgrind_test_linux(source: &str) {
let arena = bumpalo::Bump::new(); let arena = bumpalo::Bump::new();
let assume_prebuilt = true; let assume_prebuilt = true;
let res_binary_path = roc_cli::build::build_str_test( let res_binary_path = roc_build::program::build_str_test(
&arena, &arena,
&app_module_path, &app_module_path,
&app_module_source, &app_module_source,
@ -100,7 +101,7 @@ fn valgrind_test_linux(source: &str) {
run_with_valgrind(&binary_path); run_with_valgrind(&binary_path);
} }
Err(roc_cli::build::BuildFileError::LoadingProblem( Err(roc_build::program::BuildFileError::LoadingProblem(
roc_load::LoadingProblem::FormattedReport(report), roc_load::LoadingProblem::FormattedReport(report),
)) => { )) => {
eprintln!("{}", report); eprintln!("{}", report);