mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 23:21:59 +00:00
Merge pull request #27681 from ClickHouse/roaring-memory-tracker-disable-macos
Disable memory tracking for roaring bitmaps on Mac OS
This commit is contained in:
commit
40f5e06a8d
@ -27,7 +27,9 @@ target_include_directories(roaring SYSTEM BEFORE PUBLIC "${LIBRARY_DIR}/cpp")
|
|||||||
|
|
||||||
# We redirect malloc/free family of functions to different functions that will track memory in ClickHouse.
|
# We redirect malloc/free family of functions to different functions that will track memory in ClickHouse.
|
||||||
# Also note that we exploit implicit function declarations.
|
# Also note that we exploit implicit function declarations.
|
||||||
|
# Also it is disabled on Mac OS because it fails).
|
||||||
|
|
||||||
|
if (NOT OS_DARWIN)
|
||||||
target_compile_definitions(roaring PRIVATE
|
target_compile_definitions(roaring PRIVATE
|
||||||
-Dmalloc=clickhouse_malloc
|
-Dmalloc=clickhouse_malloc
|
||||||
-Dcalloc=clickhouse_calloc
|
-Dcalloc=clickhouse_calloc
|
||||||
@ -37,3 +39,4 @@ target_compile_definitions(roaring PRIVATE
|
|||||||
-Dposix_memalign=clickhouse_posix_memalign)
|
-Dposix_memalign=clickhouse_posix_memalign)
|
||||||
|
|
||||||
target_link_libraries(roaring PUBLIC clickhouse_common_io)
|
target_link_libraries(roaring PUBLIC clickhouse_common_io)
|
||||||
|
endif ()
|
||||||
|
Loading…
Reference in New Issue
Block a user