summaryrefslogtreecommitdiff
path: root/indra/cmake
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2024-08-20 06:50:33 -0500
committerGitHub <noreply@github.com>2024-08-20 06:50:33 -0500
commit16c9c47f14411263889798d89eaa6dde9b1e4771 (patch)
tree1e45eae933f44fdf800a282cecb5ac651f7806c0 /indra/cmake
parentf92c2040b94da7eb4fb2ba3ae9f7f7233e2463b1 (diff)
#2354 Enable Tracy on test builds (#2357)
* #2354 Enable Tracy on test builds * Only enable Tracy by default on windows
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)