Dynamically load find/make specializations graph if there are no type errors

This commit is contained in:
Ayaz Hafiz 2022-08-16 10:03:55 -05:00
parent 34c3f266e0
commit b809d6d452
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
4 changed files with 153 additions and 12 deletions

View file

@ -33,6 +33,8 @@ pub mod build;
mod format;
pub use format::format;
use crate::build::BuildOrdering;
const DEFAULT_ROC_FILENAME: &str = "main.roc";
pub const CMD_BUILD: &str = "build";
@ -521,6 +523,10 @@ pub fn build(
.and_then(|s| s.parse::<u32>().ok())
.map(|x| x * 1024);
let build_ordering = match config {
BuildAndRunIfNoErrors => BuildOrdering::BuildIfChecks,
_ => BuildOrdering::AlwaysBuild,
};
let res_binary_path = build_file(
&arena,
&triple,
@ -533,6 +539,7 @@ pub fn build(
precompiled,
threading,
wasm_dev_stack_bytes,
build_ordering,
);
match res_binary_path {