summaryrefslogtreecommitdiffstats
path: root/compiler/rustc_target/src/spec/riscv64gc_unknown_none_elf.rs
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/rustc_target/src/spec/riscv64gc_unknown_none_elf.rs')
-rw-r--r--compiler/rustc_target/src/spec/riscv64gc_unknown_none_elf.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/rustc_target/src/spec/riscv64gc_unknown_none_elf.rs b/compiler/rustc_target/src/spec/riscv64gc_unknown_none_elf.rs
index 409b0b269..ab3c14e3f 100644
--- a/compiler/rustc_target/src/spec/riscv64gc_unknown_none_elf.rs
+++ b/compiler/rustc_target/src/spec/riscv64gc_unknown_none_elf.rs
@@ -1,6 +1,8 @@
use crate::spec::{Cc, CodeModel, LinkerFlavor, Lld, PanicStrategy};
use crate::spec::{RelocModel, Target, TargetOptions};
+use super::SanitizerSet;
+
pub fn target() -> Target {
Target {
data_layout: "e-m:e-p:64:64-i64:64-i128:128-n32:64-S128".into(),
@@ -20,6 +22,7 @@ pub fn target() -> Target {
code_model: Some(CodeModel::Medium),
emit_debug_gdb_scripts: false,
eh_frame_header: false,
+ supported_sanitizers: SanitizerSet::KERNELADDRESS,
..Default::default()
},
}