void-packages/srcpkgs/tilix/patches/llvm-unwind.patch

31 lines
888 B
Diff

Use find_library instead of dependency so llvm-libunwind can be used,
since it doesn't ship a pkg-config file.
diff --git a/meson.build b/meson.build
index fdf63f57..8c4515d0 100644
--- a/meson.build
+++ b/meson.build
@@ -1,11 +1,12 @@
project(
- 'Tilix', 'd',
+ 'Tilix', ['c', 'd'],
version: '1.9.6',
license: 'MPL-2.0',
meson_version: '>= 0.56'
)
compiler = meson.get_compiler('d')
+cc = meson.get_compiler('c')
if compiler.get_id() == 'llvm'
d_extra_args = ['-vcolumns']
d_link_args = []
@@ -99,7 +100,7 @@ sources_dir = include_directories('source/')
gtkd_dep = dependency('gtkd-3', version: '>=3.8.5')
vted_dep = dependency('vted-3', version: '>=3.8.5')
xlib_dep = dependency('x11')
-libunwind_dep = dependency('libunwind')
+libunwind_dep = cc.find_library('libunwind')
libsecret_dep = dependency('libsecret-1', required: false)
subdir('po')