[sysprof] build: force libunwind usage when configured
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sysprof] build: force libunwind usage when configured
- Date: Sat, 2 Apr 2022 00:16:39 +0000 (UTC)
commit c9416a5d62faa2b07e504835556dcfc657f7121d
Author: Christian Hergert <chergert redhat com>
Date: Fri Apr 1 17:16:34 2022 -0700
build: force libunwind usage when configured
meson.build | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/meson.build b/meson.build
index 83e505c8..13ef35a1 100644
--- a/meson.build
+++ b/meson.build
@@ -83,7 +83,9 @@ config_h.set10('HAVE_POLKIT_AGENT', polkit_agent_dep.found())
config_h.set10('HAVE_POLKIT', polkit_dep.found())
if get_option('libunwind')
- libunwind_dep = dependency('libunwind-generic')
+ # Force libunwind usage if it's specified to avoid back compiles
+ # and backtrace() showing up in builds
+ libunwind_dep = dependency('libunwind-generic', required: true)
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]))
endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]