Skip to content

Commit

Permalink
Fix java lib missing symbols issue
Browse files Browse the repository at this point in the history
Clang19 doesn't like missing symbols
  • Loading branch information
jzhou77 committed Dec 14, 2024
1 parent df0fc7d commit e332d15
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bindings/java/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,10 @@ endif()

if(NOT WIN32 AND NOT APPLE AND NOT OPEN_FOR_IDE)
target_link_options(java_workloads PRIVATE "LINKER:--version-script=${CMAKE_SOURCE_DIR}/bindings/c/external_workload.map,-z,nodelete")
if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang" AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL "19.0.0")
# Needed because symbol "workloadCFactory" is not defined
target_link_options(java_workloads PRIVATE "LINKER:--undefined-version")
endif()
endif()

target_include_directories(fdb_java PRIVATE ${JNI_INCLUDE_DIRS})
Expand Down

0 comments on commit e332d15

Please sign in to comment.