mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-08 21:58:20 +00:00
Pass target BinaryFormat through when targeting native object files
Co-authored-by: Syrus Akbary <me@syrusakbary.com>
This commit is contained in:
@@ -102,16 +102,7 @@ impl LLVM {
|
|||||||
// Hack: we're using is_pic to determine whether this is a native
|
// Hack: we're using is_pic to determine whether this is a native
|
||||||
// build or not.
|
// build or not.
|
||||||
let binary_format = if self.is_pic {
|
let binary_format = if self.is_pic {
|
||||||
match target.triple().operating_system {
|
target.triple().binary_format
|
||||||
wasmer_compiler::OperatingSystem::Darwin
|
|
||||||
| wasmer_compiler::OperatingSystem::MacOSX {
|
|
||||||
major: _,
|
|
||||||
minor: _,
|
|
||||||
patch: _,
|
|
||||||
} => target_lexicon::BinaryFormat::Macho,
|
|
||||||
wasmer_compiler::OperatingSystem::Windows => target_lexicon::BinaryFormat::Coff,
|
|
||||||
_ => target_lexicon::BinaryFormat::Elf,
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
target_lexicon::BinaryFormat::Elf
|
target_lexicon::BinaryFormat::Elf
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user