mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-10 07:00:53 +00:00
build: make libunwind optional
This commit is contained in:
@ -89,9 +89,11 @@ if cc.has_header('execinfo.h')
|
||||
config_h.set10('HAVE_EXECINFO_H', true)
|
||||
endif
|
||||
|
||||
libunwind_dep = dependency('libunwind-generic', required: false)
|
||||
if libunwind_dep.found()
|
||||
config_h.set10('ENABLE_LIBUNWIND', libunwind_dep.found())
|
||||
if get_option('libunwind')
|
||||
libunwind_dep = dependency('libunwind-generic', required: false)
|
||||
if libunwind_dep.found()
|
||||
config_h.set10('ENABLE_LIBUNWIND', libunwind_dep.found())
|
||||
endif
|
||||
endif
|
||||
|
||||
# Development build setup
|
||||
|
||||
Reference in New Issue
Block a user