diff options
| author | Ivan Lozano <ivanlozano@google.com> | 2021-12-03 16:11:13 -0500 |
|---|---|---|
| committer | Ivan Lozano <ivanlozano@google.com> | 2022-02-16 09:39:03 -0500 |
| commit | 568aeda9e955ca2a4c043bc2ae7f854e60f6103a (patch) | |
| tree | 9bf9fb4b071e057a6869945ceef6883aebf40050 /compiler/rustc_session/src | |
| parent | 55697574915ca58c3fcd7b1c854c1c93e002dc85 (diff) | |
| download | rust-568aeda9e955ca2a4c043bc2ae7f854e60f6103a.tar.gz rust-568aeda9e955ca2a4c043bc2ae7f854e60f6103a.zip | |
MemTagSanitizer Support
Adds support for the LLVM MemTagSanitizer.
Diffstat (limited to 'compiler/rustc_session/src')
| -rw-r--r-- | compiler/rustc_session/src/options.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_session/src/options.rs b/compiler/rustc_session/src/options.rs index ae1b638c344..05f616d4e33 100644 --- a/compiler/rustc_session/src/options.rs +++ b/compiler/rustc_session/src/options.rs @@ -376,7 +376,7 @@ mod desc { pub const parse_panic_strategy: &str = "either `unwind` or `abort`"; pub const parse_opt_panic_strategy: &str = parse_panic_strategy; pub const parse_relro_level: &str = "one of: `full`, `partial`, or `off`"; - pub const parse_sanitizers: &str = "comma separated list of sanitizers: `address`, `cfi`, `hwaddress`, `leak`, `memory` or `thread`"; + pub const parse_sanitizers: &str = "comma separated list of sanitizers: `address`, `cfi`, `hwaddress`, `leak`, `memory`, `memtag`, or `thread`"; pub const parse_sanitizer_memory_track_origins: &str = "0, 1, or 2"; pub const parse_cfguard: &str = "either a boolean (`yes`, `no`, `on`, `off`, etc), `checks`, or `nochecks`"; @@ -638,6 +638,7 @@ mod parse { "cfi" => SanitizerSet::CFI, "leak" => SanitizerSet::LEAK, "memory" => SanitizerSet::MEMORY, + "memtag" => SanitizerSet::MEMTAG, "thread" => SanitizerSet::THREAD, "hwaddress" => SanitizerSet::HWADDRESS, _ => return false, |
