mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 04:08:19 +00:00
only pass endianness down
This commit is contained in:
parent
3a2ebb878c
commit
9ba0103715
1 changed files with 2 additions and 5 deletions
|
@ -264,7 +264,7 @@ impl<'a> Surgeries<'a> {
|
|||
|
||||
/// Constructs a `metadata::Metadata` from a host executable binary, and writes it to disk
|
||||
pub(crate) fn preprocess_elf(
|
||||
target: &Triple,
|
||||
endianness: target_lexicon::Endianness,
|
||||
host_exe_path: &Path,
|
||||
metadata_path: &Path,
|
||||
preprocessed_path: &Path,
|
||||
|
@ -389,10 +389,7 @@ pub(crate) fn preprocess_elf(
|
|||
let scanning_dynamic_deps_duration;
|
||||
let platform_gen_start;
|
||||
|
||||
let out_mmap = match target
|
||||
.endianness()
|
||||
.unwrap_or(target_lexicon::Endianness::Little)
|
||||
{
|
||||
let out_mmap = match endianness {
|
||||
target_lexicon::Endianness::Little => {
|
||||
let scanning_dynamic_deps_start = Instant::now();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue