Skip to content

Commit

Permalink
Add source for mutually-exclusive list
Browse files Browse the repository at this point in the history
  • Loading branch information
djkoloski committed May 17, 2024
1 parent 5976494 commit 1e1143c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions compiler/rustc_target/src/spec/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1316,6 +1316,8 @@ bitflags::bitflags! {
rustc_data_structures::external_bitflags_debug! { SanitizerSet }

impl SanitizerSet {
// Taken from LLVM's sanitizer compatibility logic:
// https://github.com/llvm/llvm-project/blob/release/18.x/clang/lib/Driver/SanitizerArgs.cpp#L512
const MUTUALLY_EXCLUSIVE: &'static [(SanitizerSet, SanitizerSet)] = &[
(SanitizerSet::ADDRESS, SanitizerSet::MEMORY),
(SanitizerSet::ADDRESS, SanitizerSet::THREAD),
Expand Down

0 comments on commit 1e1143c

Please sign in to comment.