Skip to content

Commit 93c9bf5

Browse files
committed
Add memory_pool_jemalloc.cc only Linux
1 parent fc17936 commit 93c9bf5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

contrib/arrow-cmake/CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,6 @@ set(ARROW_SRCS
254254
"${LIBRARY_DIR}/device.cc"
255255
"${LIBRARY_DIR}/extension_type.cc"
256256
"${LIBRARY_DIR}/memory_pool.cc"
257-
"${LIBRARY_DIR}/memory_pool_jemalloc.cc"
258257
"${LIBRARY_DIR}/pretty_print.cc"
259258
"${LIBRARY_DIR}/record_batch.cc"
260259
"${LIBRARY_DIR}/result.cc"
@@ -423,6 +422,10 @@ set(ARROW_SRCS
423422
"${ARROW_SRC_DIR}/arrow/adapters/orc/options.cc"
424423
)
425424

425+
if (OS_LINUX)
426+
SET(ARROW_SRCS "${LIBRARY_DIR}/memory_pool_jemalloc.cc" ${ARROW_SRCS})
427+
elseif()
428+
426429
add_definitions(-DARROW_WITH_LZ4)
427430
SET(ARROW_SRCS "${LIBRARY_DIR}/util/compression_lz4.cc" ${ARROW_SRCS})
428431

0 commit comments

Comments
 (0)