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

@ -12,6 +12,7 @@ use roc_load::{EntryPoint, ExecutionMode, LoadConfig, Threading};
use roc_mono::ir::OptLevel;
use roc_region::all::LineInfo;
use roc_reporting::report::RenderTarget;
use roc_utils::zig;
use target_lexicon::Triple;
#[cfg(feature = "gen-llvm-wasm")]
@ -456,9 +457,7 @@ fn llvm_module_to_wasm_file(
.write_to_file(llvm_module, file_type, &test_a_path)
.unwrap();
use std::process::Command;
let output = Command::new(&crate::helpers::zig_executable())
let output = zig()
.current_dir(dir_path)
.args(&[
"wasm-ld",