about summary refs log tree commit diff
path: root/compiler/rustc_target
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-08-01 14:16:37 +0000
committerbors <bors@rust-lang.org>2021-08-01 14:16:37 +0000
commit2e9c8705e94826da6aebe46512b4e3bbfc9e008f (patch)
tree6f424dfb2c1060a7e552a4da02f0d8854ea2a150 /compiler/rustc_target
parent8d57c0ab2b2e1aae07c1b8638358fb7a909940bc (diff)
parent4258e937f671fbabbc11d55505388f220a7a21ab (diff)
downloadrust-2e9c8705e94826da6aebe46512b4e3bbfc9e008f.tar.gz
rust-2e9c8705e94826da6aebe46512b4e3bbfc9e008f.zip
Auto merge of #87664 - devnexen:netbsd_sanitizers_support, r=nagisa
netbsd x86_64 arch enable supported sanitizers.
Diffstat (limited to 'compiler/rustc_target')
-rw-r--r--compiler/rustc_target/src/spec/x86_64_unknown_netbsd.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/rustc_target/src/spec/x86_64_unknown_netbsd.rs b/compiler/rustc_target/src/spec/x86_64_unknown_netbsd.rs
index 0269c7afe55..9ba86280d51 100644
--- a/compiler/rustc_target/src/spec/x86_64_unknown_netbsd.rs
+++ b/compiler/rustc_target/src/spec/x86_64_unknown_netbsd.rs
@@ -1,4 +1,4 @@
-use crate::spec::{LinkerFlavor, StackProbeType, Target, TargetOptions};
+use crate::spec::{LinkerFlavor, SanitizerSet, StackProbeType, Target, TargetOptions};
 
 pub fn target() -> Target {
     let mut base = super::netbsd_base::opts();
@@ -7,6 +7,8 @@ pub fn target() -> Target {
     base.pre_link_args.entry(LinkerFlavor::Gcc).or_default().push("-m64".to_string());
     // don't use probe-stack=inline-asm until rust#83139 and rust#84667 are resolved
     base.stack_probes = StackProbeType::Call;
+    base.supported_sanitizers =
+        SanitizerSet::ADDRESS | SanitizerSet::LEAK | SanitizerSet::MEMORY | SanitizerSet::THREAD;
 
     Target {
         llvm_target: "x86_64-unknown-netbsd".to_string(),