diff --git a/crates/linker/src/generate_dylib/pe.rs b/crates/linker/src/generate_dylib/pe.rs index 7f0060c710..791d584388 100644 --- a/crates/linker/src/generate_dylib/pe.rs +++ b/crates/linker/src/generate_dylib/pe.rs @@ -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, diff --git a/crates/linker/src/lib.rs b/crates/linker/src/lib.rs index a1fc83447e..952682f262 100644 --- a/crates/linker/src/lib.rs +++ b/crates/linker/src/lib.rs @@ -55,7 +55,7 @@ pub fn build_and_preprocess_host( exported_closure_types: Vec, ) { 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") }; diff --git a/crates/linker/src/pe.rs b/crates/linker/src/pe.rs index 38f0a232f2..38497692b6 100644 --- a/crates/linker/src/pe.rs +++ b/crates/linker/src/pe.rs @@ -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",