Commit 0e94731b authored by Michael Lee (Engineering)'s avatar Michael Lee (Engineering) Committed by Facebook GitHub Bot

Check the value of `FOLLY_USE_JEMALLOC` instead of assuming defined

Summary:
To be able to override this feature, we should check that
`FOLLY_USE_JEMALLOC` is set to 1 rather than just set.

Reviewed By: yfeldblum

Differential Revision: D22681072

fbshipit-source-id: 18b35910217fd1869cc23107a50241c4ed2ed1b7
parent c43ba39c
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
#include <folly/CPortability.h> #include <folly/CPortability.h>
#include <folly/portability/Config.h> #include <folly/portability/Config.h>
#if (defined(USE_JEMALLOC) || defined(FOLLY_USE_JEMALLOC)) && !FOLLY_SANITIZE #if (defined(USE_JEMALLOC) || FOLLY_USE_JEMALLOC) && !FOLLY_SANITIZE
#if defined(FOLLY_ASSUME_NO_JEMALLOC) #if defined(FOLLY_ASSUME_NO_JEMALLOC)
#error \ #error \
"Both USE_JEMALLOC/FOLLY_USE_JEMALLOC and FOLLY_ASSUME_NO_JEMALLOC defined" "Both USE_JEMALLOC/FOLLY_USE_JEMALLOC and FOLLY_ASSUME_NO_JEMALLOC defined"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment