mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 01:25:21 +00:00
47 lines
1.2 KiB
CMake
47 lines
1.2 KiB
CMake
add_definitions(
|
|
-DNO_TCMALLOC_SAMPLES -DNO_TCMALLOC_SAMPLES
|
|
-DNDEBUG -DNO_FRAME_POINTER
|
|
-Wwrite-strings -Wno-sign-compare -Wno-unused-result
|
|
-fno-builtin-malloc -fno-builtin-free -fno-builtin-realloc -fno-builtin-calloc -fno-builtin-cfree
|
|
-fno-builtin-memalign -fno-builtin-posix_memalign -fno-builtin-valloc -fno-builtin-pvalloc
|
|
)
|
|
|
|
include_directories (include src)
|
|
|
|
add_library (tcmalloc_minimal_internal
|
|
./src/malloc_hook.cc
|
|
./src/base/spinlock_internal.cc
|
|
./src/base/spinlock.cc
|
|
./src/base/dynamic_annotations.c
|
|
./src/base/linuxthreads.cc
|
|
./src/base/elf_mem_image.cc
|
|
./src/base/vdso_support.cc
|
|
./src/base/sysinfo.cc
|
|
./src/base/low_level_alloc.cc
|
|
./src/base/thread_lister.c
|
|
./src/base/logging.cc
|
|
./src/base/atomicops-internals-x86.cc
|
|
./src/memfs_malloc.cc
|
|
./src/tcmalloc.cc
|
|
./src/malloc_extension.cc
|
|
./src/thread_cache.cc
|
|
./src/symbolize.cc
|
|
./src/page_heap.cc
|
|
./src/maybe_threads.cc
|
|
./src/central_freelist.cc
|
|
./src/static_vars.cc
|
|
./src/sampler.cc
|
|
./src/internal_logging.cc
|
|
./src/system-alloc.cc
|
|
./src/span.cc
|
|
./src/common.cc
|
|
./src/debugallocation.cc
|
|
./src/stacktrace.cc
|
|
./src/stack_trace_table.cc
|
|
./src/heap-checker.cc
|
|
./src/heap-checker-bcad.cc
|
|
./src/heap-profile-table.cc
|
|
./src/raw_printer.cc
|
|
./src/memory_region_map.cc
|
|
)
|