diff options
| author | Tri Vo <trong@google.com> | 2021-01-22 18:32:38 -0800 |
|---|---|---|
| committer | Tri Vo <trong@google.com> | 2021-02-07 23:48:58 -0800 |
| commit | c7d9bffe76477a2f79c468b07e5eaf82525eea99 (patch) | |
| tree | addcee2a27c0041b9ba694a78d84ec30d86a1e19 /compiler/rustc_codegen_ssa | |
| parent | 0b7a598e12649d7ab2415a82cbc3fea879fa9dab (diff) | |
| download | rust-c7d9bffe76477a2f79c468b07e5eaf82525eea99.tar.gz rust-c7d9bffe76477a2f79c468b07e5eaf82525eea99.zip | |
HWASan support
Diffstat (limited to 'compiler/rustc_codegen_ssa')
| -rw-r--r-- | compiler/rustc_codegen_ssa/src/back/link.rs | 3 |
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) { |
