about summary refs log tree commit diff
path: root/src/bootstrap
diff options
context:
space:
mode:
authorUlrich Weigand <ulrich.weigand@de.ibm.com>2023-01-20 18:34:24 +0100
committerUlrich Weigand <ulrich.weigand@de.ibm.com>2023-01-20 18:34:24 +0100
commit492d928e44c73c5e804dbf174e53ea2229f61315 (patch)
treeee24a2d94e80908146d54bbee57212baed9eb4eb /src/bootstrap
parent04a41f889f563b2384c63c990b5423d201d62ebd (diff)
Enable sanitizers for s390x-linux
Include sanitizers supported by LLVM on s390x (asan, lsan, msan, tsan)
in the target definition, as well as in the compiletest supported list.

Build sanitizer runtime for the target.  Enable sanitizers in the CI.
Diffstat (limited to 'src/bootstrap')
-rw-r--r--src/bootstrap/native.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/bootstrap/native.rs b/src/bootstrap/native.rs
index e0d1504c9c7..cb5706ca0a6 100644
--- a/src/bootstrap/native.rs
+++ b/src/bootstrap/native.rs
@@ -1105,6 +1105,12 @@ fn supported_sanitizers(
         "x86_64-unknown-linux-musl" => {
             common_libs("linux", "x86_64", &["asan", "lsan", "msan", "tsan"])
         }
+        "s390x-unknown-linux-gnu" => {
+            common_libs("linux", "s390x", &["asan", "lsan", "msan", "tsan"])
+        }
+        "s390x-unknown-linux-musl" => {
+            common_libs("linux", "s390x", &["asan", "lsan", "msan", "tsan"])
+        }
         _ => Vec::new(),
     }
 }