use libapp.dll as the dll name

This commit is contained in:
Folkert 2022-10-23 20:18:09 +02:00
parent ca90b00588
commit 28665abc96
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
3 changed files with 5 additions and 5 deletions

View file

@ -1,7 +1,7 @@
use object::pe;
use object::LittleEndian as LE;
pub(crate) const APP_DLL: &str = "roc-cheaty-lib.dll";
pub(crate) const APP_DLL: &str = "libapp.dll";
fn synthetic_image_export_directory(
name: &str,

View file

@ -55,7 +55,7 @@ pub fn build_and_preprocess_host(
exported_closure_types: Vec<String>,
) {
let dummy_lib = if let target_lexicon::OperatingSystem::Windows = target.operating_system {
host_input_path.with_file_name("libapp.obj")
host_input_path.with_file_name("libapp.dll")
} else {
host_input_path.with_file_name("libapp.so")
};

View file

@ -1727,14 +1727,14 @@ mod test {
// make the dummy dylib based on the app object
let names: Vec<_> = symbols.iter().map(|s| s.name.clone()).collect();
let dylib_bytes = crate::generate_dylib::synthetic_dll(&names);
std::fs::write(dir.join("libapp.obj"), dylib_bytes).unwrap();
std::fs::write(dir.join("libapp.dll"), dylib_bytes).unwrap();
// now we can compile the host (it uses libapp.obj, hence the order here)
// now we can compile the host (it uses libapp.dll, hence the order here)
let output = std::process::Command::new(&zig)
.current_dir(dir)
.args(&[
"build-exe",
"libapp.obj",
"libapp.dll",
"host.zig",
"-lc",
"-target",