summary refs log tree commit diff
path: root/compiler/rustc_codegen_ssa/src
diff options
context:
space:
mode:
authorTri Vo <trong@google.com>2021-01-22 18:32:38 -0800
committerTri Vo <trong@google.com>2021-02-07 23:48:58 -0800
commitc7d9bffe76477a2f79c468b07e5eaf82525eea99 (patch)
treeaddcee2a27c0041b9ba694a78d84ec30d86a1e19 /compiler/rustc_codegen_ssa/src
parent0b7a598e12649d7ab2415a82cbc3fea879fa9dab (diff)
downloadrust-c7d9bffe76477a2f79c468b07e5eaf82525eea99.tar.gz
rust-c7d9bffe76477a2f79c468b07e5eaf82525eea99.zip
HWASan support
Diffstat (limited to 'compiler/rustc_codegen_ssa/src')
-rw-r--r--compiler/rustc_codegen_ssa/src/back/link.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/rustc_codegen_ssa/src/back/link.rs b/compiler/rustc_codegen_ssa/src/back/link.rs
index 8bc4e644223..6c58417590e 100644
--- a/compiler/rustc_codegen_ssa/src/back/link.rs
+++ b/compiler/rustc_codegen_ssa/src/back/link.rs
@@ -893,6 +893,9 @@ fn link_sanitizers(sess: &Session, crate_type: CrateType, linker: &mut dyn Linke
     if sanitizer.contains(SanitizerSet::THREAD) {
         link_sanitizer_runtime(sess, linker, "tsan");
     }
+    if sanitizer.contains(SanitizerSet::HWADDRESS) {
+        link_sanitizer_runtime(sess, linker, "hwasan");
+    }
 }
 
 fn link_sanitizer_runtime(sess: &Session, linker: &mut dyn Linker, name: &str) {