valgrind flag

This commit is contained in:
Anton-4 2021-11-13 14:39:15 +01:00
parent 35a74a1fe4
commit 030a504bd2
5 changed files with 39 additions and 2 deletions

View file

@ -142,10 +142,11 @@ pub fn build_and_preprocess_host(
target: &Triple,
host_input_path: &Path,
exposed_to_host: Vec<String>,
target_valgrind: bool,
) -> io::Result<()> {
let dummy_lib = host_input_path.with_file_name("libapp.so");
generate_dynamic_lib(target, exposed_to_host, &dummy_lib)?;
rebuild_host(opt_level, target, host_input_path, Some(&dummy_lib));
rebuild_host(opt_level, target, host_input_path, Some(&dummy_lib), target_valgrind);
let dynhost = host_input_path.with_file_name("dynhost");
let metadata = host_input_path.with_file_name("metadata");
let prehost = host_input_path.with_file_name("preprocessedhost");