-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
57 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
cross_patches/0001-Remove-failing-test-on-targets-where-pointers-aren-t.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
From 3f3f48e81b70d0ca8f3756171f246d6e75f2e6ba Mon Sep 17 00:00:00 2001 | ||
From: None <[email protected]> | ||
Date: Fri, 27 Oct 2023 08:32:25 -0400 | ||
Subject: [PATCH] Remove failing test on targets where pointers aren't aligned | ||
on 4 bytes | ||
|
||
--- | ||
library/core/tests/ptr.rs | 2 +- | ||
1 file changed, 1 insertion(+), 1 deletion(-) | ||
|
||
diff --git a/library/core/tests/ptr.rs b/library/core/tests/ptr.rs | ||
index ee885ad..836b944 100644 | ||
--- a/library/core/tests/ptr.rs | ||
+++ b/library/core/tests/ptr.rs | ||
@@ -717,7 +717,7 @@ fn is_aligned_const() { | ||
assert!(ptr.is_aligned()); | ||
assert!(ptr.is_aligned_to(1)); | ||
assert!(ptr.is_aligned_to(2)); | ||
- assert!(ptr.is_aligned_to(4)); | ||
+ //assert!(ptr.is_aligned_to(4)); | ||
assert!(ptr.wrapping_byte_add(2).is_aligned_to(1)); | ||
assert!(ptr.wrapping_byte_add(2).is_aligned_to(2)); | ||
assert!(!ptr.wrapping_byte_add(2).is_aligned_to(4)); | ||
-- | ||
2.42.0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/bash | ||
|
||
vm_parent_dir=${CG_GCC_VM_DIR:-$(pwd)} | ||
vm_dir=vm | ||
exe=$1 | ||
exe_filename=$(basename $exe) | ||
vm_home_dir=$vm_parent_dir/$vm_dir/home | ||
vm_exe_path=$vm_home_dir/$exe_filename | ||
inside_vm_exe_path=/home/$exe_filename | ||
sudo cp $exe $vm_exe_path | ||
|
||
shift | ||
pushd $vm_parent_dir | ||
sudo chroot $vm_dir qemu-m68k-static $inside_vm_exe_path $@ | ||
popd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters