meson: Add tracy_libbacktrace_elf_dynload_support option

This commit is contained in:
Ivan Molodetskikh 2023-12-12 08:06:31 +04:00
parent b110b10b35
commit 4e23b1125a
2 changed files with 5 additions and 0 deletions

View File

@ -106,6 +106,10 @@ if get_option('tracy_symbol_offline_resolve')
tracy_compile_args += ['-DTRACY_SYMBOL_OFFLINE_RESOLVE'] tracy_compile_args += ['-DTRACY_SYMBOL_OFFLINE_RESOLVE']
endif endif
if get_option('tracy_libbacktrace_elf_dynload_support')
tracy_compile_args += ['-DTRACY_LIBBACKTRACE_ELF_DYNLOAD_SUPPORT']
endif
tracy_shared_libs = get_option('default_library') == 'shared' tracy_shared_libs = get_option('default_library') == 'shared'
if not tracy_shared_libs and get_option('tracy_shared_libs') 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.') warning('tracy_shared_libs is set to true, but default_library is set to static. Building static library.')

View File

@ -18,6 +18,7 @@ option('tracy_patchable_nopsleds', type : 'boolean', value : false, description
option('tracy_timer_fallback', type : 'boolean', value : false, description : 'Use lower resolution timers') option('tracy_timer_fallback', type : 'boolean', value : false, description : 'Use lower resolution timers')
option('tracy_libunwind_backtrace', type : 'boolean', value : false, description : 'Use libunwind backtracing where supported') option('tracy_libunwind_backtrace', type : 'boolean', value : false, description : 'Use libunwind backtracing where supported')
option('tracy_symbol_offline_resolve', type : 'boolean', value : false, description : 'Instead of full runtime symbol resolution, only resolve the image path and offset to enable offline symbol resolution') option('tracy_symbol_offline_resolve', type : 'boolean', value : false, description : 'Instead of full runtime symbol resolution, only resolve the image path and offset to enable offline symbol resolution')
option('tracy_libbacktrace_elf_dynload_support', type : 'boolean', value : false, description : 'Enable libbacktrace to support dynamically loaded elfs in symbol resolution resolution after the first symbol resolve operation')
option('tracy_delayed_init', type : 'boolean', value : false, description : 'Enable delayed initialization of the library (init on first call)') 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_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') option('tracy_fibers', type : 'boolean', value : false, description : 'Enable fibers support')