mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
build: require libunwind unless disabled
Only some situations can use this properly without libunwind, so make sure that we have it available unless -Dlibunwind=false. Distributors, please be kind, use libunwind!
This commit is contained in:
@ -81,7 +81,7 @@ config_h.set10('HAVE_POLKIT_AGENT', polkit_agent_dep.found())
|
|||||||
config_h.set10('HAVE_POLKIT', polkit_dep.found())
|
config_h.set10('HAVE_POLKIT', polkit_dep.found())
|
||||||
|
|
||||||
if get_option('libunwind')
|
if get_option('libunwind')
|
||||||
libunwind_dep = dependency('libunwind-generic', required: false)
|
libunwind_dep = dependency('libunwind-generic')
|
||||||
config_h.set('ENABLE_LIBUNWIND', libunwind_dep.found())
|
config_h.set('ENABLE_LIBUNWIND', libunwind_dep.found())
|
||||||
config_h.set('HAVE_UNW_SET_CACHE_SIZE', libunwind_dep.found() and cc.has_header_symbol('libunwind.h', 'unw_set_cache_size', dependencies: [libunwind_dep]))
|
config_h.set('HAVE_UNW_SET_CACHE_SIZE', libunwind_dep.found() and cc.has_header_symbol('libunwind.h', 'unw_set_cache_size', dependencies: [libunwind_dep]))
|
||||||
endif
|
endif
|
||||||
|
|||||||
Reference in New Issue
Block a user