about summary refs log tree commit diff
path: root/src/libsyntax_pos
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2019-12-02 09:34:09 +0100
committerGitHub <noreply@github.com>2019-12-02 09:34:09 +0100
commit8438770e1fc647bc06745cfafc4da32dcc5b85b2 (patch)
treee34c4cc093f3d1ebbf71deb279fd2dc047e4e594 /src/libsyntax_pos
parentf5c81e0a986e4285d3d0fd781a1bd475753eb12c (diff)
parentc703ff26555bc25739384b2104dfb538ec7435c7 (diff)
downloadrust-8438770e1fc647bc06745cfafc4da32dcc5b85b2.tar.gz
rust-8438770e1fc647bc06745cfafc4da32dcc5b85b2.zip
Rollup merge of #66245 - tmiasko:cfg-sanitize, r=oli-obk
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.
Diffstat (limited to 'src/libsyntax_pos')
-rw-r--r--src/libsyntax_pos/symbol.rs2
1 files changed, 2 insertions, 0 deletions
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,