Skip to content

Commit 3e59f14

Browse files
committed
Update to abi-cafe 1.0
1 parent 600a8a7 commit 3e59f14

File tree

2 files changed

+36
-36
lines changed

2 files changed

+36
-36
lines changed

build_system/abi_cafe.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ use crate::{CodegenBackend, SysrootKind, build_sysroot};
66
static ABI_CAFE_REPO: GitRepo = GitRepo::github(
77
"Gankra",
88
"abi-cafe",
9-
"f1220cfd13b57f5c0082c26529163865ee25e115",
10-
"fe93a9acd461425d",
9+
"49efdca14e9d48c34e50552d1f620615a87637bb",
10+
"21fed1b4ca4cd439",
1111
"abi-cafe",
1212
);
1313

patches/0002-abi-cafe-Disable-broken-tests.patch

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Date: Tue, 9 Jul 2024 11:25:14 +0000
44
Subject: [PATCH] Disable broken tests
55

66
---
7-
src/report.rs | 36 ++++++++++++++++++++++++++++++++++++
7+
src/harness/report.rs | 36 ++++++++++++++++++++++++++++++++++++
88
1 file changed, 36 insertions(+)
99

1010
diff --git a/src/toolchains/rust.rs b/src/toolchains/rust.rs
@@ -14,56 +14,56 @@ index 0c50f7a..bfde2b1 100644
1414
@@ -83,6 +83,7 @@ impl Toolchain for RustcToolchain {
1515
.arg(out_dir)
1616
.arg("--target")
17-
.arg(built_info::TARGET)
17+
.arg(&self.platform_info.target)
1818
+ .arg("-g")
1919
.arg(format!("-Cmetadata={lib_name}"))
2020
.arg(src_path);
2121
if let Some(codegen_backend) = &self.codegen_backend {
22-
diff --git a/src/report.rs b/src/report.rs
22+
diff --git a/src/harness/report.rs b/src/harness/report.rs
2323
index 958ab43..dcf1044 100644
24-
--- a/src/report.rs
25-
+++ b/src/report.rs
24+
--- a/src/harness/report.rs
25+
+++ b/src/harness/report.rs
2626
@@ -48,6 +48,40 @@ pub fn get_test_rules(test: &TestKey, caller: &dyn Toolchain, callee: &dyn Toolc
27-
//
28-
// THIS AREA RESERVED FOR VENDORS TO APPLY PATCHES
27+
//
28+
// THIS AREA RESERVED FOR VENDORS TO APPLY PATCHES
2929

30-
+ if cfg!(all(target_arch = "aarch64", target_os = "linux")) {
31-
+ if test.test == "F32Array" && test.options.convention == CallingConvention::C {
32-
+ result.check = Busted(Check);
30+
+ if cfg!(all(target_arch = "aarch64", target_os = "linux")) {
31+
+ if key.test == "F32Array" && key.options.convention == CallingConvention::C {
32+
+ result.check = Busted(Check);
33+
+ }
3334
+ }
34-
+ }
3535
+
36-
+ if cfg!(all(target_arch = "aarch64", target_os = "macos")) {
37-
+ if test.test == "SingleVariantUnion" && test.options.convention == CallingConvention::C && test.options.repr == LangRepr::C {
38-
+ result.check = Busted(Check);
39-
+ }
36+
+ if cfg!(all(target_arch = "aarch64", target_os = "macos")) {
37+
+ if key.test == "SingleVariantUnion" && key.options.convention == CallingConvention::C && key.options.repr == LangRepr::C {
38+
+ result.check = Busted(Check);
39+
+ }
4040
+
41-
+ if test.test == "OptionU128" && test.caller == "rustc" && test.options.convention == CallingConvention::Rust && test.options.repr == LangRepr::C {
42-
+ result.check = Busted(Run);
43-
+ }
41+
+ if key.test == "OptionU128" && key.caller == "rustc" && key.options.convention == CallingConvention::Rust && key.options.repr == LangRepr::C {
42+
+ result.check = Busted(Run);
43+
+ }
4444
+
45-
+ if test.test == "OptionU128" && test.caller == "cgclif" && test.options.convention == CallingConvention::Rust && test.options.repr == LangRepr::C {
46-
+ result.check = Busted(Check);
45+
+ if key.test == "OptionU128" && key.caller == "cgclif" && key.options.convention == CallingConvention::Rust && key.options.repr == LangRepr::C {
46+
+ result.check = Busted(Check);
47+
+ }
4748
+ }
48-
+ }
4949
+
50-
+ if cfg!(all(target_arch = "x86_64", windows)) {
51-
+ if test.test == "simple" && test.options.convention == CallingConvention::Rust {
52-
+ result.check = Busted(Check);
53-
+ }
50+
+ if cfg!(all(target_arch = "x86_64", windows)) {
51+
+ if key.test == "simple" && key.options.convention == CallingConvention::Rust {
52+
+ result.check = Busted(Check);
53+
+ }
5454
+
55-
+ if test.test == "simple" && test.options.convention == CallingConvention::Rust && test.caller == "rustc" {
56-
+ result.check = Busted(Run);
55+
+ if key.test == "simple" && key.options.convention == CallingConvention::Rust && key.caller == "rustc" {
56+
+ result.check = Busted(Run);
57+
+ }
5758
+ }
58-
+ }
5959
+
60-
+ if test.test == "f16" || test.test == "f128" {
61-
+ result.run = Skip;
62-
+ }
60+
+ if key.test == "f16" || key.test == "f128" {
61+
+ result.run = Skip;
62+
+ }
6363
+
64-
// END OF VENDOR RESERVED AREA
65-
//
66-
//
64+
// END OF VENDOR RESERVED AREA
65+
//
66+
//
6767
--
6868
2.34.1
6969

0 commit comments

Comments
 (0)