summaryrefslogtreecommitdiff
path: root/indra/llplugin
diff options
context:
space:
mode:
authorErik Kundiman <erik@megapahit.org>2026-06-23 18:50:04 +0800
committerErik Kundiman <erik@megapahit.org>2026-06-23 19:57:44 +0800
commit3f27cd9a683360843524a42628faa6310e196645 (patch)
tree0a23448fa58d3837fac3119dd7caf764c5526a4a /indra/llplugin
parentda63f5e232fec28964649833b6a31b9301d0072f (diff)
Strip viewer binaries on GCC and Clang
but excluding AppleClang.
Diffstat (limited to 'indra/llplugin')
-rw-r--r--indra/llplugin/slplugin/CMakeLists.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/indra/llplugin/slplugin/CMakeLists.txt b/indra/llplugin/slplugin/CMakeLists.txt
index 2a6aa10165..f7adb9404b 100644
--- a/indra/llplugin/slplugin/CMakeLists.txt
+++ b/indra/llplugin/slplugin/CMakeLists.txt
@@ -61,6 +61,13 @@ elseif (DARWIN)
)
endif ()
+if (CMAKE_BUILD_TYPE MATCHES Release AND (CMAKE_CXX_COMPILER_ID STREQUAL Clang OR CMAKE_CXX_COMPILER_ID MATCHES GNU))
+ add_custom_command(
+ TARGET ${PROJECT_NAME} POST_BUILD
+ COMMAND ${CMAKE_STRIP} ${PROJECT_NAME}
+ )
+endif ()
+
if (BUILD_SHARED_LIBS)
set_target_properties(SLPlugin PROPERTIES LINK_FLAGS_RELEASE
"${LINK_FLAGS_RELEASE} -Wl,--allow-shlib-undefined")