mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 13:59:08 +00:00
refactor cli/src/build.rs
This commit is contained in:
parent
a2c760aa56
commit
1995d8b3df
5 changed files with 235 additions and 156 deletions
|
@ -34,7 +34,7 @@ pub mod build;
|
|||
mod format;
|
||||
pub use format::format;
|
||||
|
||||
use crate::build::{BuildFileError, BuildOrdering};
|
||||
use crate::build::{standard_load_config, BuildFileError, BuildOrdering};
|
||||
|
||||
const DEFAULT_ROC_FILENAME: &str = "main.roc";
|
||||
|
||||
|
@ -672,6 +672,8 @@ pub fn build(
|
|||
emit_debug_info,
|
||||
};
|
||||
|
||||
let load_config = standard_load_config(&triple, build_ordering, threading);
|
||||
|
||||
let res_binary_path = build_file(
|
||||
&arena,
|
||||
&triple,
|
||||
|
@ -681,10 +683,9 @@ pub fn build(
|
|||
link_type,
|
||||
linking_strategy,
|
||||
prebuilt,
|
||||
threading,
|
||||
wasm_dev_stack_bytes,
|
||||
roc_cache_dir,
|
||||
build_ordering,
|
||||
load_config,
|
||||
);
|
||||
|
||||
match res_binary_path {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue