summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/scudo/scudo_platform.h
diff options
context:
space:
mode:
Diffstat (limited to 'compiler-rt/lib/scudo/scudo_platform.h')
-rw-r--r--compiler-rt/lib/scudo/scudo_platform.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/compiler-rt/lib/scudo/scudo_platform.h b/compiler-rt/lib/scudo/scudo_platform.h
index a915c9843a5..e1c9c32e9a6 100644
--- a/compiler-rt/lib/scudo/scudo_platform.h
+++ b/compiler-rt/lib/scudo/scudo_platform.h
@@ -8,6 +8,7 @@
//===----------------------------------------------------------------------===//
///
/// Scudo platform specific definitions.
+/// TODO(kostyak): add tests for the compile time defines.
///
//===----------------------------------------------------------------------===//
@@ -45,6 +46,11 @@
# define SCUDO_SHARED_TSD_POOL_SIZE 32U
#endif // SCUDO_SHARED_TSD_POOL_SIZE
+// The following allows the public interface functions to be disabled.
+#ifndef SCUDO_CAN_USE_PUBLIC_INTERFACE
+# define SCUDO_CAN_USE_PUBLIC_INTERFACE 1
+#endif
+
namespace __scudo {
#if SANITIZER_CAN_USE_ALLOCATOR64
OpenPOWER on IntegriCloud