mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-23 20:12:27 +00:00
use libapp.dll
as the dll name
This commit is contained in:
parent
ca90b00588
commit
28665abc96
3 changed files with 5 additions and 5 deletions
|
@ -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,
|
||||
|
|
|
@ -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")
|
||||
};
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue