Merge pull request #6808 from roc-lang/process-host

Update preprocess host API
This commit is contained in:
Luke Boswell 2024-07-03 10:23:44 +10:00 committed by GitHub
commit f69d39dffc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 117 additions and 106 deletions

View file

@ -1169,7 +1169,7 @@ fn build_and_preprocess_host_lowlevel(
opt_level: OptLevel,
target: Target,
platform_main_roc: &Path,
preprocessed_host_path: &Path,
_preprocessed_host_path: &Path,
stub_dll_symbols: &[String],
) {
let stub_lib =
@ -1177,14 +1177,15 @@ fn build_and_preprocess_host_lowlevel(
debug_assert!(stub_lib.exists());
rebuild_host(opt_level, target, platform_main_roc, Some(&stub_lib));
let host_dest = rebuild_host(opt_level, target, platform_main_roc, Some(&stub_lib));
roc_linker::preprocess_host(
target,
host_dest.as_path(),
platform_main_roc,
preprocessed_host_path,
&stub_lib,
stub_dll_symbols,
false,
false,
)
}