Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions cpp/core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,9 @@ add_dependencies(gluten jni_proto)
if(NOT CMAKE_SYSTEM_NAME MATCHES "Darwin")
target_link_options(
gluten PRIVATE -Wl,--version-script=${CMAKE_CURRENT_SOURCE_DIR}/symbols.map)
# Strip the symbol table in Release builds to reduce binary size.
target_link_options(gluten PRIVATE
$<$<NOT:$<CONFIG:Debug>>:-Wl,-s>)
endif()

if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS 9.0)
Expand Down
7 changes: 5 additions & 2 deletions cpp/velox/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -258,10 +258,13 @@ if(GLUTEN_VELOX_ENABLE_PARQUET)
message(STATUS "Propagating VELOX_ENABLE_PARQUET to Gluten Velox backend")
endif()

if(ENABLE_GLUTEN_VCPKG AND NOT CMAKE_SYSTEM_NAME MATCHES "Darwin")
# Hide some symbols to avoid conflict.
if(NOT CMAKE_SYSTEM_NAME MATCHES "Darwin")
# Hide symbols not needed by JNI callers.
target_link_options(
velox PRIVATE -Wl,--version-script=${CMAKE_CURRENT_SOURCE_DIR}/symbols.map)
# Strip the symbol table in Release builds to reduce binary size.
target_link_options(velox PRIVATE
$<$<NOT:$<CONFIG:Debug>>:-Wl,-s>)
endif()

find_protobuf()
Expand Down
Loading