add test that combines a zig platform with a dll

This commit is contained in:
Folkert 2022-09-18 14:11:46 +02:00
parent 61366f0d43
commit 6005ed0664
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
4 changed files with 73 additions and 50 deletions

View file

@ -3,6 +3,9 @@ use target_lexicon::Triple;
mod elf64;
mod pe;
#[cfg(test)]
pub(crate) use pe::synthetic_dll;
pub fn generate(target: &Triple, custom_names: &[String]) -> object::read::Result<Vec<u8>> {
match target.binary_format {
target_lexicon::BinaryFormat::Elf => elf64::create_dylib_elf64(custom_names),