diff options
author | Qyriad <qyriad@qyriad.me> | 2024-04-03 17:38:09 -0600 |
---|---|---|
committer | Qyriad <qyriad@qyriad.me> | 2024-04-04 20:43:38 -0600 |
commit | 07e1ddc23d333c0858959919c309df918dabae17 (patch) | |
tree | 383bdd402fc1aaec33f0607ddf74220b0d70d51d /meson.build | |
parent | 9166babbaf5882ad2cfe1c7c9b30de1c153d70a8 (diff) |
meson: add missing tests: ca, dyn-drv, plugins, libstoreconsumer
Change-Id: I6a74ebaf93697cb99aadd6b51538c2766b0a808a
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/meson.build b/meson.build index 66c664282..89881e190 100644 --- a/meson.build +++ b/meson.build @@ -92,8 +92,22 @@ host_system = host_machine.cpu_family() + '-' + host_machine.system() message('canonical Nix system name:', host_system) is_linux = host_machine.system() == 'linux' +is_darwin = host_machine.system() == 'darwin' is_x64 = host_machine.cpu_family() == 'x86_64' +# Per-platform arguments that you should probably pass to shared_module() invocations. +# Something like add_project_arguments() can't be scoped on only shared modules, so this +# variable is here instead. +# This corresponds to the $(1)_ALLOW_UNDEFINED option from the Make buildsystem. +# Mostly this is load-bearing on the plugin tests defined in tests/functional/plugins/meson.build. +shared_module_link_args = [] +if is_darwin + shared_module_link_args += ['-undefined', 'suppress', '-flat_namespace'] +elif is_linux + # -Wl,-z,defs is the equivalent, but a comment in the Make buildsystem says that breaks + # Clang sanitizers on Linux. + # FIXME(Qyriad): is that true? +endif deps = [ ] configdata = { } |