Closes #4423, link build command refactoring

This commit is contained in:
Anton-4 2022-10-31 21:32:38 +01:00
parent bc2ec738a0
commit 4ec43d9964
No known key found for this signature in database
GPG key ID: A13F4A6E21141925
17 changed files with 258 additions and 188 deletions

View file

@ -4,6 +4,7 @@ extern crate roc_load;
extern crate roc_module;
extern crate tempfile;
use roc_utils::cargo;
use serde::Deserialize;
use serde_xml_rs::from_str;
use std::env;
@ -48,7 +49,7 @@ where
vec!["build", "--release", "--bin", "roc"]
};
let output = Command::new("cargo")
let output = cargo()
.current_dir(root_project_dir)
.args(args)
.output()