diff options
| author | Tomasz Miąsko <tomasz.miasko@gmail.com> | 2019-10-22 00:00:00 +0000 |
|---|---|---|
| committer | Tomasz Miąsko <tomasz.miasko@gmail.com> | 2019-12-01 09:03:35 +0100 |
| commit | c703ff26555bc25739384b2104dfb538ec7435c7 (patch) | |
| tree | 7b0f97002a7356faa17d75e45ceb0ada77072ba0 /src/libsyntax_pos | |
| parent | 135ccbaca86ed4b9c0efaf0cd31442eae57ffad7 (diff) | |
| download | rust-c703ff26555bc25739384b2104dfb538ec7435c7.tar.gz rust-c703ff26555bc25739384b2104dfb538ec7435c7.zip | |
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.rs | 2 |
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, |
