give the new exposed symbols to the surgical linker

This commit is contained in:
Folkert 2023-02-25 19:35:46 +01:00
parent fee5e978f7
commit 454f3c603e
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
11 changed files with 163 additions and 75 deletions

View file

@ -8,7 +8,7 @@ static BUILD_ONCE: std::sync::Once = std::sync::Once::new();
#[cfg(all(target_os = "linux"))]
fn build_host() {
use roc_build::link::preprocessed_host_filename;
use roc_linker::build_and_preprocess_host;
use roc_linker::{build_and_preprocess_host, ExposedSymbols};
let platform_main_roc = std::env::current_dir()
.unwrap()
@ -26,8 +26,10 @@ fn build_host() {
&target,
&platform_main_roc,
&preprocessed_host_path,
vec![String::from("mainForHost")],
vec![],
ExposedSymbols {
top_level_values: vec![String::from("mainForHost")],
exported_closure_types: vec![],
},
);
}