summaryrefslogtreecommitdiff
path: root/indra/cmake
diff options
context:
space:
mode:
authorAndrey Lihatskiy <alihatskiy@productengine.com>2024-08-21 19:55:59 +0300
committerAndrey Lihatskiy <alihatskiy@productengine.com>2024-08-21 19:55:59 +0300
commit8756727a525f3c4f72d790adafb8d719dfc24a94 (patch)
treeee201c54b5e218ed449bb90c398355c0c88ffa4e /indra/cmake
parent8f07f8e233ed5ed6c5a7b6f797d0ee7b18b652e2 (diff)
parent4bda6873ee7baac1ac34f92178d871c430da88c6 (diff)
Merge branch 'develop' into marchcat/b-develop
# Conflicts: # indra/newview/llvoicewebrtc.cpp
Diffstat (limited to 'indra/cmake')
-rw-r--r--indra/cmake/Tracy.cmake12
1 files changed, 9 insertions, 3 deletions
diff --git a/indra/cmake/Tracy.cmake b/indra/cmake/Tracy.cmake
index 3339c51ba0..d54a32fdc2 100644
--- a/indra/cmake/Tracy.cmake
+++ b/indra/cmake/Tracy.cmake
@@ -4,11 +4,17 @@ include(Prebuilt)
include_guard()
add_library( ll::tracy INTERFACE IMPORTED )
-option(USE_TRACY "Use Tracy profiler." OFF)
+# default Tracy profiling on for test builds, but off for all others
+string(TOLOWER ${VIEWER_CHANNEL} channel_lower)
+if(WINDOWS AND channel_lower MATCHES "^second life test")
+ option(USE_TRACY "Use Tracy profiler." ON)
+else()
+ option(USE_TRACY "Use Tracy profiler." OFF)
+endif()
if (USE_TRACY)
- option(USE_TRACY_ON_DEMAND "Use Tracy profiler." ON)
- option(USE_TRACY_LOCAL_ONLY "Use Tracy profiler." OFF)
+ option(USE_TRACY_ON_DEMAND "Use on-demand Tracy profiling." ON)
+ option(USE_TRACY_LOCAL_ONLY "Disallow remote Tracy profiling." OFF)
use_system_binary(tracy)
use_prebuilt_binary(tracy)