mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
build: check for unw_set_cache_size()
This may not be available on older libunwind versions such as 1.2.
This commit is contained in:
@ -93,6 +93,9 @@ if get_option('libunwind')
|
||||
libunwind_dep = dependency('libunwind-generic', required: false)
|
||||
if libunwind_dep.found()
|
||||
config_h.set10('ENABLE_LIBUNWIND', libunwind_dep.found())
|
||||
if cc.has_header_symbol('libunwind.h', 'unw_set_cache_size', dependencies: [libunwind_dep])
|
||||
config_h.set10('HAVE_UNW_SET_CACHE_SIZE', 1)
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user