summaryrefslogtreecommitdiffstats
path: root/compiler/rustc_codegen_cranelift/patches/0001-abi-cafe-Disable-some-test-on-x86_64-pc-windows-gnu.patch
blob: 0e5e7cdfcdf1a44028d6ada6cc17c59ee28d96f2 (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
From 2b15fee2bb5fd14e34c7e17e44d99cb34f4c555d Mon Sep 17 00:00:00 2001
From: Afonso Bordado <afonsobordado@az8.co>
Date: Tue, 27 Sep 2022 07:55:17 +0100
Subject: [PATCH] Disable some test on x86_64-pc-windows-gnu

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

diff --git a/src/report.rs b/src/report.rs
index eeec614..f582867 100644
--- a/src/report.rs
+++ b/src/report.rs
@@ -48,6 +48,12 @@ pub fn get_test_rules(test: &TestKey, caller: &dyn AbiImpl, callee: &dyn AbiImpl
     //
     // THIS AREA RESERVED FOR VENDORS TO APPLY PATCHES
 
+    // x86_64-pc-windows-gnu has some broken i128 tests that aren't disabled by default
+    if cfg!(all(target_os = "windows", target_env = "gnu")) && test.test_name == "ui128" {
+        result.run = Link;
+        result.check = Pass(Link);
+    }
+
     // END OF VENDOR RESERVED AREA
     //
     //
-- 
2.30.1.windows.1