summaryrefslogtreecommitdiffstats
path: root/compiler/rustc_codegen_cranelift/patches/0001-abi-checker-Disable-failing-tests.patch
blob: 526366a7598760b95bb6d107ca3dbf20a8f0f871 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
From 1a315ba225577dbbd1f449d9609f16f984f68708 Mon Sep 17 00:00:00 2001
From: Afonso Bordado <afonso360@users.noreply.github.com>
Date: Fri, 12 Aug 2022 22:51:58 +0000
Subject: [PATCH] Disable abi-checker tests

---
 src/report.rs | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/src/report.rs b/src/report.rs
index 7346f5e..8347762 100644
--- a/src/report.rs
+++ b/src/report.rs
@@ -45,6 +45,20 @@ pub fn get_test_rules(test: &TestKey, caller: &dyn AbiImpl, callee: &dyn AbiImpl
     //
     // THIS AREA RESERVED FOR VENDORS TO APPLY PATCHES

+    // Currently MSVC has some broken ABI issues. Furthermore, they cause
+    // a STATUS_ACCESS_VIOLATION, so we can't even run them. Ensure that they compile and link.
+    if cfg!(windows) && (test.test_name == "bool" || test.test_name == "ui128") {
+        result.run = Link;
+        result.check = Pass(Link);
+    }
+
+    // structs is broken in the current release of cranelift for aarch64.
+    // It has been fixed for cranelift 0.88: https://github.com/bytecodealliance/wasmtime/pull/4634
+    if cfg!(target_arch = "aarch64") && test.test_name == "structs" {
+        result.run = Link;
+        result.check = Pass(Link);
+    }
+
     // END OF VENDOR RESERVED AREA
     //
     //
--
2.34.1