We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2fa3ef2 commit 99ee373Copy full SHA for 99ee373
core/metacling/src/CMakeLists.txt
@@ -236,6 +236,10 @@ if(NOT APPLE AND NOT MSVC)
236
# After inlining and hiding symbols, some of them are not referenced anymore
237
# and can be collected by the linker, reducing the library size.
238
target_link_libraries(Cling PRIVATE -Wl,--gc-sections)
239
+ # Additionally, for Release builds, strip the binary to remove symbol tables.
240
+ add_custom_command(TARGET Cling POST_BUILD
241
+ COMMAND $<$<CONFIG:Release>:${CMAKE_STRIP}>
242
+ ARGS $<TARGET_FILE:Cling>)
243
endif()
244
245
if (CMAKE_SYSTEM_NAME MATCHES FreeBSD)
0 commit comments