Skip to content

Commit

Permalink
try a legacy host for valgrind
Browse files Browse the repository at this point in the history
  • Loading branch information
lukewilliamboswell committed Jul 9, 2024
1 parent ba65480 commit cde2a89
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions crates/valgrind/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,25 +19,12 @@ fn build_host() {
std::env::set_var("NO_AVX512", "1");
}

let stub_dll_symbols = roc_linker::ExposedSymbols {
top_level_values: vec![String::from("mainForHost")],
exported_closure_types: vec![],
}
.stub_dll_symbols();

let stub_lib = roc_linker::generate_stub_lib_from_loaded(
target,
platform_main_roc.as_path(),
stub_dll_symbols.as_slice(),
);

debug_assert!(stub_lib.exists());

// build a legacy host
roc_build::link::rebuild_host(
roc_mono::ir::OptLevel::Normal,
target,
platform_main_roc.as_path(),
Some(&stub_lib),
None,
);
}

Expand Down

0 comments on commit cde2a89

Please sign in to comment.