about summary refs log tree commit diff
path: root/compiler/rustc_codegen_ssa/src/back
diff options
context:
space:
mode:
authorCorey Farwell <coreyf@rwell.org>2020-12-09 23:53:53 -0500
committerCorey Farwell <coreyf@rwell.org>2020-12-09 23:53:53 -0500
commit5940c193159a40fc9ebecc0de1482ba3d0a7a2dc (patch)
tree3a7a8404e2bca075d3de2a22247d0454d85a5db6 /compiler/rustc_codegen_ssa/src/back
parent58d2bad9f7ab0971495247b6c94978848760ca9d (diff)
downloadrust-5940c193159a40fc9ebecc0de1482ba3d0a7a2dc.tar.gz
rust-5940c193159a40fc9ebecc0de1482ba3d0a7a2dc.zip
Enable ASan, TSan, UBSan for aarch64-apple-darwin.
Diffstat (limited to 'compiler/rustc_codegen_ssa/src/back')
-rw-r--r--compiler/rustc_codegen_ssa/src/back/link.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_ssa/src/back/link.rs b/compiler/rustc_codegen_ssa/src/back/link.rs
index 70cf876a08a..0f4408a8fc6 100644
--- a/compiler/rustc_codegen_ssa/src/back/link.rs
+++ b/compiler/rustc_codegen_ssa/src/back/link.rs
@@ -819,7 +819,8 @@ fn link_sanitizer_runtime(sess: &Session, linker: &mut dyn Linker, name: &str) {
         .unwrap_or_default();
 
     match sess.opts.target_triple.triple() {
-        "x86_64-apple-darwin" => {
+        "aarch64-apple-darwin"
+        | "x86_64-apple-darwin" => {
             // On Apple platforms, the sanitizer is always built as a dylib, and
             // LLVM will link to `@rpath/*.dylib`, so we need to specify an
             // rpath to the library as well (the rpath should be absolute, see