add .exe extension when target is windows

This commit is contained in:
Folkert 2022-09-21 18:11:59 +02:00
parent 8634f284b5
commit 8811123811
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C

View file

@ -97,9 +97,14 @@ pub fn build_and_preprocess_host(
host_input_path.with_file_name("libapp.so")
};
let dynhost = if let target_lexicon::OperatingSystem::Windows = target.operating_system {
host_input_path.with_file_name("dynhost.exe")
} else {
host_input_path.with_file_name("dynhost")
};
generate_dynamic_lib(target, exposed_to_host, exported_closure_types, &dummy_lib);
rebuild_host(opt_level, target, host_input_path, Some(&dummy_lib));
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");