summaryrefslogtreecommitdiff
path: root/absl/base
diff options
context:
space:
mode:
authorGravatar Abseil Team <absl-team@google.com>2022-04-14 05:41:35 -0700
committerGravatar Derek Mauro <dmauro@google.com>2022-04-14 09:41:10 -0400
commit8c6e53ef3adb1227fffa442c50349dab134a54bc (patch)
tree3b8999d474f65aafac591a93f74a47b49900bee6 /absl/base
parentac1398a6296de03413d7b88df4b4aa16e9e450cc (diff)
Export of internal Abseil changes
-- 155545fafefd0a0cef83853f1addea1ecf4a4618 by Derek Mauro <dmauro@google.com>: Support ABSL_ATTRIBUTE_NO_SANITIZE_ADDRESS on MSVC https://docs.microsoft.com/en-us/cpp/cpp/no-sanitize-address PiperOrigin-RevId: 441737758 Change-Id: Ida9b185a929ffa22ad2ffdcfbd53076f69bfc036 GitOrigin-RevId: 155545fafefd0a0cef83853f1addea1ecf4a4618
Diffstat (limited to 'absl/base')
-rw-r--r--absl/base/attributes.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/absl/base/attributes.h b/absl/base/attributes.h
index 5721356d..c71038c7 100644
--- a/absl/base/attributes.h
+++ b/absl/base/attributes.h
@@ -213,6 +213,9 @@
// https://gcc.gnu.org/gcc-4.8/changes.html
#if ABSL_HAVE_ATTRIBUTE(no_sanitize_address)
#define ABSL_ATTRIBUTE_NO_SANITIZE_ADDRESS __attribute__((no_sanitize_address))
+#elif defined(_MSC_VER) && _MSC_VER >= 1928
+// https://docs.microsoft.com/en-us/cpp/cpp/no-sanitize-address
+#define ABSL_ATTRIBUTE_NO_SANITIZE_ADDRESS __declspec(no_sanitize_address)
#else
#define ABSL_ATTRIBUTE_NO_SANITIZE_ADDRESS
#endif