Change preprocessedhost filename

This commit is contained in:
Richard Feldman 2022-11-18 23:54:21 -05:00
parent 7f617c87bf
commit 571844fc27
No known key found for this signature in database
GPG key ID: F1F21AA5B1D9E43B
5 changed files with 18 additions and 9 deletions

View file

@ -1,7 +1,7 @@
use bumpalo::Bump;
use roc_build::{
link::{
legacy_host_filename, link, precompiled_host_filename, preprocess_host_wasm32,
legacy_host_filename, link, preprocess_host_wasm32, preprocessed_host_filename,
rebuild_host, LinkType, LinkingStrategy,
},
program::{self, CodeGenOptions, Problems},
@ -165,7 +165,7 @@ pub fn build_file<'a>(
let preprocessed_host_path = match linking_strategy {
LinkingStrategy::Surgical | LinkingStrategy::Additive => {
host_input_path.with_file_name(precompiled_host_filename(target).unwrap())
host_input_path.with_file_name(preprocessed_host_filename(target).unwrap())
}
LinkingStrategy::Legacy => host_input_path
.with_file_name(legacy_host_filename(target, code_gen_options.opt_level).unwrap()),