projects
/
folly.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
add FOLLY_SANITIZE macro
[folly.git]
/
folly
/
Portability.h
diff --git
a/folly/Portability.h
b/folly/Portability.h
index 15f393e0be911d2f8eacb252ddc1bad9a362f07b..6c140379de9e9920755e3eb70cb615c6bd8acb88 100644
(file)
--- a/
folly/Portability.h
+++ b/
folly/Portability.h
@@
-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