summaryrefslogtreecommitdiff
path: root/indra/newview
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/newview
parentda63f5e232fec28964649833b6a31b9301d0072f (diff)
Strip viewer binaries on GCC and Clang
but excluding AppleClang.
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/CMakeLists.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/indra/newview/CMakeLists.txt b/indra/newview/CMakeLists.txt
index 31345d15fb..afedf6aea7 100644
--- a/indra/newview/CMakeLists.txt
+++ b/indra/newview/CMakeLists.txt
@@ -1874,6 +1874,13 @@ else ()
)
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 ${VIEWER_BINARY_NAME} POST_BUILD
+ COMMAND ${CMAKE_STRIP} ${VIEWER_BINARY_NAME}
+ )
+endif ()
+
if(USE_PRECOMPILED_HEADERS)
target_precompile_headers( ${VIEWER_BINARY_NAME} PRIVATE llviewerprecompiledheaders.h )
endif(USE_PRECOMPILED_HEADERS)