Use RTC_HAS_MSAN to check for MSan builds.
Bug: None Change-Id: Iba1d66d9985f449c5d3710d7d615d4b25acf763b Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/196360 Reviewed-by: Per Kjellander <perkj@webrtc.org> Reviewed-by: Tommi <tommi@webrtc.org> Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org> Cr-Commit-Position: refs/heads/master@{#32772}
This commit is contained in:

committed by
Commit Bot

parent
ad70609509
commit
85e62e6d13
@ -57,6 +57,7 @@ rtc_source_set("rtc_export") {
|
|||||||
|
|
||||||
rtc_source_set("no_unique_address") {
|
rtc_source_set("no_unique_address") {
|
||||||
sources = [ "no_unique_address.h" ]
|
sources = [ "no_unique_address.h" ]
|
||||||
|
deps = [ "..:sanitizer" ]
|
||||||
}
|
}
|
||||||
|
|
||||||
if (is_mac || is_ios) {
|
if (is_mac || is_ios) {
|
||||||
|
@ -11,6 +11,8 @@
|
|||||||
#ifndef RTC_BASE_SYSTEM_NO_UNIQUE_ADDRESS_H_
|
#ifndef RTC_BASE_SYSTEM_NO_UNIQUE_ADDRESS_H_
|
||||||
#define RTC_BASE_SYSTEM_NO_UNIQUE_ADDRESS_H_
|
#define RTC_BASE_SYSTEM_NO_UNIQUE_ADDRESS_H_
|
||||||
|
|
||||||
|
#include "rtc_base/sanitizer.h"
|
||||||
|
|
||||||
// RTC_NO_UNIQUE_ADDRESS is a portable annotation to tell the compiler that
|
// RTC_NO_UNIQUE_ADDRESS is a portable annotation to tell the compiler that
|
||||||
// a data member need not have an address distinct from all other non-static
|
// a data member need not have an address distinct from all other non-static
|
||||||
// data members of its class.
|
// data members of its class.
|
||||||
@ -26,7 +28,7 @@
|
|||||||
// platform is iOS.
|
// platform is iOS.
|
||||||
//
|
//
|
||||||
// TODO(bugs.webrtc.org/12218): Re-enable on MSan builds.
|
// TODO(bugs.webrtc.org/12218): Re-enable on MSan builds.
|
||||||
#if !defined(__SANITIZE_MEMORY__) && \
|
#if !RTC_HAS_MSAN && \
|
||||||
((defined(__clang__) && !defined(_MSC_VER) && !defined(WEBRTC_IOS)) || \
|
((defined(__clang__) && !defined(_MSC_VER) && !defined(WEBRTC_IOS)) || \
|
||||||
__cplusplus > 201703L)
|
__cplusplus > 201703L)
|
||||||
// NOLINTNEXTLINE(whitespace/braces)
|
// NOLINTNEXTLINE(whitespace/braces)
|
||||||
|
Reference in New Issue
Block a user