mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 06:14:46 +00:00
Change preprocessedhost filename
This commit is contained in:
parent
7f617c87bf
commit
062ecce84c
5 changed files with 17 additions and 9 deletions
|
@ -1517,6 +1517,7 @@ mod tests {
|
|||
use super::*;
|
||||
|
||||
use indoc::indoc;
|
||||
use roc_build::link::preprocessed_host_filename;
|
||||
use target_lexicon::Triple;
|
||||
|
||||
const ELF64_DYNHOST: &[u8] = include_bytes!("../dynhost_benchmarks_elf64") as &[_];
|
||||
|
@ -1669,17 +1670,19 @@ mod tests {
|
|||
panic!("zig build-exe failed");
|
||||
}
|
||||
|
||||
let preprocessed_host_filename = dir.join(preprocessed_host_filename(target).unwrap());
|
||||
|
||||
preprocess_elf(
|
||||
target_lexicon::Endianness::Little,
|
||||
&dir.join("host"),
|
||||
&dir.join("metadata"),
|
||||
&dir.join("preprocessedhost"),
|
||||
&preprocessed_host_filename,
|
||||
&dir.join("libapp.so"),
|
||||
false,
|
||||
false,
|
||||
);
|
||||
|
||||
std::fs::copy(&dir.join("preprocessedhost"), &dir.join("final")).unwrap();
|
||||
std::fs::copy(&preprocessed_host_filename, &dir.join("final")).unwrap();
|
||||
|
||||
surgery_elf(
|
||||
&roc_app,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue