Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/wolfpld/tracy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Puskas <mmpuskas@gmail.com>2022-05-01 23:51:22 +0300
committerMichael Puskas <mmpuskas@gmail.com>2022-05-01 23:52:27 +0300
commita5ea07f107bbc4ca3440bd23614c247617e9ee4f (patch)
treef48df7e9ce5711b417b60b521df0004e5676fda0 /meson.build
parentaa2bbfe5f9dea5b919984e7051a361b3e4efdadb (diff)
Fix build options, add TRACY_TIMER_FALLBACK option.
Renamed TRACY_NO_SYS_TRACE -> TRACY_NO_SYSTEM_TRACING to match the build flag name. Unlike the meson logic, the CMake logic directly maps the option name to the build flag that is injected. With the mismatched name, the flag wasn't being properly applied. Added TRACY_TIMER_FALLBACK option to expose the same-named flag. Moved signal.h include to get sigaction definition that was missing when TRACY_NO_CALLSTACK was defined.
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build6
1 files changed, 5 insertions, 1 deletions
diff --git a/meson.build b/meson.build
index 9c343001..54a81c0f 100644
--- a/meson.build
+++ b/meson.build
@@ -60,7 +60,7 @@ if get_option('tracy_no_frame_image')
add_project_arguments('-DTRACY_NO_FRAME_IMAGE', language : 'cpp')
endif
-if get_option('tracy_no_sys_trace')
+if get_option('tracy_no_system_tracing')
add_project_arguments('-DTRACY_NO_SYSTEM_TRACING', language : 'cpp')
endif
@@ -76,6 +76,10 @@ if get_option('tracy_fibers')
add_project_arguments('-DTRACY_FIBERS', language : 'cpp')
endif
+if get_option('tracy_timer_fallback')
+ add_project_arguments('-DTRACY_TIMER_FALLBACK', language : 'cpp')
+endif
+
tracy_shared_libs = get_option('tracy_shared_libs')
if tracy_shared_libs
add_project_arguments('-DTRACY_EXPORTS', language : 'cpp')