add FOLLY_SANITIZE macro
[folly.git] / folly / Portability.h
index 15f393e0be911d2f8eacb252ddc1bad9a362f07b..6c140379de9e9920755e3eb70cb615c6bd8acb88 100644 (file)
@@ -199,6 +199,12 @@ constexpr bool kIsSanitizeThread = true;
 #else
 constexpr bool kIsSanitizeThread = false;
 #endif
+
+#if FOLLY_SANITIZE
+constexpr bool kIsSanitize = true;
+#else
+constexpr bool kIsSanitize = false;
+#endif
 } // namespace folly
 
 // packing is very ugly in msvc