build: remove optional support for libunwind

backtrace() was only ever used for bringup, not actually meant to be used
in any production capacity.
This commit is contained in:
Christian Hergert
2023-08-11 12:22:46 -07:00
parent 912f8e8852
commit 4ad44609d0
5 changed files with 10 additions and 46 deletions

View File

@ -3,14 +3,10 @@ libdl_dep = dependency('dl', required: false)
preload_deps = [
dependency('glib-2.0'),
libsysprof_capture_dep,
libunwind_dep,
libdl_dep,
]
if get_option('libunwind')
preload_deps += [libunwind_dep]
endif
libsysprof_memory_preload = shared_library('sysprof-memory-@0@'.format(libsysprof_api_version),
['sysprof-memory-collector.c'],
dependencies: preload_deps,