aboutsummaryrefslogtreecommitdiff
path: root/test cases
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2022-06-21 16:42:06 -0400
committerEli Schwartz <eschwartz@archlinux.org>2022-06-21 16:42:06 -0400
commitb05d7db44359c4e5bf7816d68e8bb556fd1e4724 (patch)
tree5cd5e8ddf84edd3714218f07968745d22383a1a7 /test cases
parenta20523aa5f8ee8152f42a158226b1b3112a26521 (diff)
downloadmeson-b05d7db44359c4e5bf7816d68e8bb556fd1e4724.zip
meson-b05d7db44359c4e5bf7816d68e8bb556fd1e4724.tar.gz
meson-b05d7db44359c4e5bf7816d68e8bb556fd1e4724.tar.bz2
fix type checking for declare_dependency to allow linking to executable
We have to handle this, because Windows needs to link to the implib of the executable (???) in order to create a shared module. This is explicitly checked for and handled in the backend, and creating a build target with `link_with: some_exe` still works, even. But updating declare_dependency to typed_kwargs neglected to take that into account, so creating a convenience interface for those same arguments failed.
Diffstat (limited to 'test cases')
-rw-r--r--test cases/common/148 shared module resolving symbol in executable/meson.build5
1 files changed, 5 insertions, 0 deletions
diff --git a/test cases/common/148 shared module resolving symbol in executable/meson.build b/test cases/common/148 shared module resolving symbol in executable/meson.build
index 4e5188f..bbc7453 100644
--- a/test cases/common/148 shared module resolving symbol in executable/meson.build
+++ b/test cases/common/148 shared module resolving symbol in executable/meson.build
@@ -16,5 +16,10 @@ endif
dl = meson.get_compiler('c').find_library('dl', required: false)
e = executable('prog', 'prog.c', dependencies: dl, export_dynamic: true)
+e_dep = declare_dependency(link_with: e)
+
m = shared_module('module', 'module.c', link_with: e)
+m2 = shared_module('module2', 'module.c', dependencies: e_dep)
+
test('test', e, args: m.full_path())
+test('test2', e, args: m2.full_path())