summaryrefslogtreecommitdiffstats
path: root/vespamalloc/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'vespamalloc/CMakeLists.txt')
-rw-r--r--vespamalloc/CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/vespamalloc/CMakeLists.txt b/vespamalloc/CMakeLists.txt
index 395e7ec6d5a..df8e38653bb 100644
--- a/vespamalloc/CMakeLists.txt
+++ b/vespamalloc/CMakeLists.txt
@@ -1,4 +1,6 @@
# Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
+if(NOT CMAKE_HOST_SYSTEM_NAME STREQUAL "Darwin" AND
+ NOT DEFINED VESPA_USE_SANITIZER)
add_compile_options(-fvisibility=hidden)
add_definitions(-DPARANOID_LEVEL=0)
@@ -25,4 +27,7 @@ vespa_define_module(
)
vespa_install_script(bin/parsememorydump.pl vespa-malloc-parse-memorydump.pl bin)
+else()
+install(DIRECTORY DESTINATION lib64/vespa)
+endif()
install(FILES etc/vespamalloc.conf PERMISSIONS OWNER_READ GROUP_READ WORLD_READ DESTINATION etc)