1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

meson: Add libunwind option

The CMake name was a bit weird, so I changed it to the standard format
for meson.
This commit is contained in:
Ivan Molodetskikh
2023-12-12 08:05:38 +04:00
parent c0e4652edf
commit 2b0be68b4a
2 changed files with 6 additions and 0 deletions
+5
View File
@@ -97,6 +97,11 @@ if get_option('tracy_no_crash_handler')
tracy_common_args += ['-DTRACY_NO_CRASH_HANDLER']
endif
if get_option('tracy_libunwind_backtrace')
tracy_common_args += ['-DTRACE_CLIENT_LIBUNWIND_BACKTRACE']
tracy_public_deps += dependency('libunwind')
endif
tracy_shared_libs = get_option('default_library') == 'shared'
if not tracy_shared_libs and get_option('tracy_shared_libs')
warning('tracy_shared_libs is set to true, but default_library is set to static. Building static library.')