Skip to content
Merged
Changes from 1 commit
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
4 changes: 4 additions & 0 deletions core/metacling/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,10 @@ if(NOT APPLE AND NOT MSVC)
# After inlining and hiding symbols, some of them are not referenced anymore
# and can be collected by the linker, reducing the library size.
target_link_libraries(Cling PRIVATE -Wl,--gc-sections)
# Additionally, for Release builds, strip the binary to remove symbol tables.
add_custom_command(TARGET Cling POST_BUILD
COMMAND $<$<CONFIG:Release>:${CMAKE_STRIP}>
ARGS $<TARGET_FILE:Cling>)
endif()

if (CMAKE_SYSTEM_NAME MATCHES FreeBSD)
Expand Down
Loading