Skip to content

Commit

Permalink
Ignore --undefined-version for gcc
Browse files Browse the repository at this point in the history
  • Loading branch information
jzhou77 committed Dec 13, 2024
1 parent 485b4b7 commit 2dac67c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions bindings/c/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -431,13 +431,17 @@ if(NOT WIN32 AND NOT APPLE AND NOT OPEN_FOR_IDE)
target_link_options(cpp_workloads PRIVATE
"LINKER:--version-script=${CMAKE_CURRENT_SOURCE_DIR}/external_workload.map"
"LINKER:-z,nodelete"
"LINKER:--undefined-version"
)
if(CLANG)
target_link_options(cpp_workloads PRIVATE "LINKER:-Wl,--undefined-version")
endif()
target_link_options(c_workloads PRIVATE
"LINKER:--version-script=${CMAKE_CURRENT_SOURCE_DIR}/external_workload.map"
"LINKER:-z,nodelete"
"LINKER:--undefined-version"
)
if(CLANG)
target_link_options(c_workloads PRIVATE "LINKER:-Wl,--undefined-version")
endif()
endif()

# Generate shim library in Linux builds
Expand Down

0 comments on commit 2dac67c

Please sign in to comment.