From c703ff26555bc25739384b2104dfb538ec7435c7 Mon Sep 17 00:00:00 2001 From: Tomasz Miąsko Date: Tue, 22 Oct 2019 00:00:00 +0000 Subject: Conditional compilation for sanitizers Configure sanitize option when compiling with a sanitizer to make it possible to execute different code depending on whether given sanitizer is enabled or not. --- src/libsyntax_pos/symbol.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/libsyntax_pos') diff --git a/src/libsyntax_pos/symbol.rs b/src/libsyntax_pos/symbol.rs index 7d43c3c8d07..3059b059691 100644 --- a/src/libsyntax_pos/symbol.rs +++ b/src/libsyntax_pos/symbol.rs @@ -177,6 +177,7 @@ symbols! { cfg_attr, cfg_attr_multi, cfg_doctest, + cfg_sanitize, cfg_target_feature, cfg_target_has_atomic, cfg_target_thread_local, @@ -634,6 +635,7 @@ symbols! { rust_eh_unwind_resume, rust_oom, rvalue_static_promotion, + sanitize, sanitizer_runtime, _Self, self_in_typedefs, -- cgit 1.4.1-3-g733a5