mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 22:34:45 +00:00
cli run tests passing on macos
This commit is contained in:
parent
c3785a2def
commit
767ec7af84
9 changed files with 92 additions and 353 deletions
|
@ -714,7 +714,7 @@ pub fn build_file<'a>(
|
|||
link_type: LinkType,
|
||||
linking_strategy: LinkingStrategy,
|
||||
build_host: bool,
|
||||
supress_build_host_warning: bool,
|
||||
suppress_build_host_warning: bool,
|
||||
wasm_dev_stack_bytes: Option<u32>,
|
||||
roc_cache_dir: RocCacheDir<'_>,
|
||||
load_config: LoadConfig,
|
||||
|
@ -740,7 +740,7 @@ pub fn build_file<'a>(
|
|||
link_type,
|
||||
linking_strategy,
|
||||
build_host,
|
||||
supress_build_host_warning,
|
||||
suppress_build_host_warning,
|
||||
wasm_dev_stack_bytes,
|
||||
loaded,
|
||||
compilation_start,
|
||||
|
@ -813,7 +813,7 @@ fn build_loaded_file<'a>(
|
|||
link_type: LinkType,
|
||||
linking_strategy: LinkingStrategy,
|
||||
build_host_requested: bool,
|
||||
supress_build_host_warning: bool,
|
||||
suppress_build_host_warning: bool,
|
||||
wasm_dev_stack_bytes: Option<u32>,
|
||||
loaded: roc_load::MonomorphizedModule<'a>,
|
||||
compilation_start: Instant,
|
||||
|
@ -859,7 +859,7 @@ fn build_loaded_file<'a>(
|
|||
// The following 3 cases we currently support for host rebuilding. Emit a deprecation
|
||||
// warning and rebuild the host.
|
||||
(Ok(existing_legacy_host), _, true, LinkType::Executable) => {
|
||||
if !supress_build_host_warning {
|
||||
if !suppress_build_host_warning {
|
||||
report_rebuilding_existing_host(&existing_legacy_host.to_string_lossy());
|
||||
}
|
||||
build_and_preprocess_host(
|
||||
|
@ -880,7 +880,7 @@ fn build_loaded_file<'a>(
|
|||
true,
|
||||
LinkType::Executable,
|
||||
) => {
|
||||
if !supress_build_host_warning {
|
||||
if !suppress_build_host_warning {
|
||||
report_rebuilding_existing_host(&preprocessed_host.to_string_lossy());
|
||||
}
|
||||
build_and_preprocess_host(
|
||||
|
@ -894,7 +894,7 @@ fn build_loaded_file<'a>(
|
|||
)
|
||||
}
|
||||
(Err(legacy_paths), Err(surgical_paths), true, LinkType::Executable) => {
|
||||
if !supress_build_host_warning {
|
||||
if !suppress_build_host_warning {
|
||||
report_rebuilding_missing_host(&format!("{legacy_paths}\n {surgical_paths}"));
|
||||
}
|
||||
build_and_preprocess_host(
|
||||
|
@ -1435,7 +1435,7 @@ pub fn build_str_test<'a>(
|
|||
.map_err(|e| BuildFileError::from_mono_error(e, compilation_start))?;
|
||||
|
||||
// we are in a test, so we don't need to provide a warning about rebuilding the host
|
||||
let supress_build_host_warning = true;
|
||||
let suppress_build_host_warning = true;
|
||||
|
||||
build_loaded_file(
|
||||
arena,
|
||||
|
@ -1446,7 +1446,7 @@ pub fn build_str_test<'a>(
|
|||
link_type,
|
||||
linking_strategy,
|
||||
build_host_requested,
|
||||
supress_build_host_warning,
|
||||
suppress_build_host_warning,
|
||||
wasm_dev_stack_bytes,
|
||||
loaded,
|
||||
compilation_start,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue