From f11e71fd09dfff9b72efb38fb946040e3e349c24 Mon Sep 17 00:00:00 2001 From: David McCloskey Date: Tue, 12 Apr 2022 12:07:21 -0500 Subject: [PATCH] Adding tracy_no_sys_trace to enable MinGW builds which have an older version of envtprov.h --- CMakeLists.txt | 1 + meson.build | 4 ++++ meson_options.txt | 3 ++- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 42cc0945..40aed1fe 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -49,6 +49,7 @@ set_option(TRACY_NO_SAMPLING "Disable call stack sampling" OFF) set_option(TRACY_NO_VERIFY "Disable zone validation for C API" OFF) set_option(TRACY_NO_VSYNC_CAPTURE "Disable capture of hardware Vsync events" OFF) set_option(TRACY_NO_FRAME_IMAGE "Disable the frame image support and its thread" OFF) +set_option(TRACY_NO_SYS_TRACE "Disable systrace sampling" OFF) set_option(TRACY_DELAYED_INIT "Enable delayed initialization of the library (init on first call)" OFF) set_option(TRACY_MANUAL_LIFETIME "Enable the manual lifetime management of the profile" OFF) set_option(TRACY_FIBERS "Enable fibers support" OFF) diff --git a/meson.build b/meson.build index 935cabde..5c349167 100644 --- a/meson.build +++ b/meson.build @@ -60,6 +60,10 @@ if get_option('tracy_no_frame_image') add_project_arguments('-DTRACY_NO_FRAME_IMAGE', language : 'cpp') endif +if get_option('tracy_no_sys_trace') + add_project_arguments('-DTRACY_NO_SYSTEM_TRACING', language : 'cpp') +endif + if get_option('tracy_delayed_init') add_project_arguments('-DTRACY_DELAYED_INIT', language : 'cpp') endif diff --git a/meson_options.txt b/meson_options.txt index 03cc12d7..5d6f42ce 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -12,7 +12,8 @@ option('tracy_no_exit', type : 'boolean', value : false, description : 'Client e option('tracy_no_sampling', type : 'boolean', value : false, description : 'Disable call stack sampling') option('tracy_no_verify', type : 'boolean', value : false, description : 'Disable zone validation for C API') option('tracy_no_vsync_capture', type : 'boolean', value : false, description : 'Disable capture of hardware Vsync events') -option('tracy_no_frame_image', type : 'boolean', value : false, description : '"Disable the frame image support and its thread') +option('tracy_no_frame_image', type : 'boolean', value : false, description : 'Disable the frame image support and its thread') +option('tracy_no_sys_trace', type : 'boolean', value : false, description : 'Disable systrace sampling') option('tracy_delayed_init', type : 'boolean', value : false, description : 'Enable delayed initialization of the library (init on first call)') option('tracy_manual_lifetime', type : 'boolean', value : false, description : 'Enable the manual lifetime management of the profile') option('tracy_fibers', type : 'boolean', value : false, description : 'Enable fibers support')