Skip to content

Commit

Permalink
Merge #3294
Browse files Browse the repository at this point in the history
3294: Fix test sys yaml syntax r=ptitSeb a=ptitSeb

# Description
Fix `test-sys.yaml` syntax error.

Co-authored-by: ptitSeb <sebastien.chev@gmail.com>
  • Loading branch information
bors[bot] and ptitSeb authored Nov 10, 2022
2 parents b7c185b + f93cf62 commit f1a792e
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-sys.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ jobs:
make test-integration-cli
env:
TARGET: x86_64-pc-windows-msvc
TARGET_DIR: TARGET_DIR: target/x86_64-pc-windows-msvc/release
TARGET_DIR: target/x86_64-pc-windows-msvc/release
CARGO_TARGET: --target x86_64-pc-windows-msvc
- name: Test
if: matrix.run_test && matrix.os != 'windows-2019'
Expand Down
12 changes: 9 additions & 3 deletions lib/compiler-singlepass/src/emitter_arm64.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3198,8 +3198,10 @@ pub fn gen_std_trampoline_arm64(
; ret
);

let mut body = a.finalize().unwrap();
body.shrink_to_fit();
Ok(FunctionBody {
body: a.finalize().unwrap().to_vec(),
body,
unwind_info: None,
})
}
Expand Down Expand Up @@ -3353,8 +3355,10 @@ pub fn gen_std_dynamic_import_trampoline_arm64(
// Return.
a.emit_ret()?;

let mut body = a.finalize().unwrap();
body.shrink_to_fit();
Ok(FunctionBody {
body: a.finalize().unwrap().to_vec(),
body,
unwind_info: None,
})
}
Expand Down Expand Up @@ -3532,7 +3536,9 @@ pub fn gen_import_call_trampoline_arm64(
}
a.emit_b_register(GPR::X16)?;

let section_body = SectionBody::new_with_vec(a.finalize().unwrap().to_vec());
let mut contents = a.finalize().unwrap();
contents.shrink_to_fit();
let section_body = SectionBody::new_with_vec(contents);

Ok(CustomSection {
protection: CustomSectionProtection::ReadExecute,
Expand Down
12 changes: 9 additions & 3 deletions lib/compiler-singlepass/src/machine_x64.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7736,8 +7736,10 @@ impl Machine for MachineX86_64 {

a.emit_ret()?;

let mut body = a.finalize().unwrap();
body.shrink_to_fit();
Ok(FunctionBody {
body: a.finalize().unwrap().to_vec(),
body,
unwind_info: None,
})
}
Expand Down Expand Up @@ -7858,8 +7860,10 @@ impl Machine for MachineX86_64 {
// Return.
a.emit_ret()?;

let mut body = a.finalize().unwrap();
body.shrink_to_fit();
Ok(FunctionBody {
body: a.finalize().unwrap().to_vec(),
body,
unwind_info: None,
})
}
Expand Down Expand Up @@ -8024,7 +8028,9 @@ impl Machine for MachineX86_64 {
}
a.emit_host_redirection(GPR::RAX)?;

let section_body = SectionBody::new_with_vec(a.finalize().unwrap().to_vec());
let mut contents = a.finalize().unwrap();
contents.shrink_to_fit();
let section_body = SectionBody::new_with_vec(contents);

Ok(CustomSection {
protection: CustomSectionProtection::ReadExecute,
Expand Down

0 comments on commit f1a792e

Please sign in to comment.