From 37ef3adaed3f36622d2e980439514cb177e5aa28 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Tue, 9 Jan 2024 09:46:24 +1000 Subject: [PATCH] test: drop the unncessary unit_defines from meson.build Let's set unit_c_args directly instead of having two variables for the same thing. --- test/meson.build | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/meson.build b/test/meson.build index 28a32a035..afa08abb2 100644 --- a/test/meson.build +++ b/test/meson.build @@ -187,15 +187,14 @@ if build_xorg 'xfree86.c', 'xtest.c', ] - unit_defines = ['-DXORG_TESTS'] + unit_c_args = ['-DXORG_TESTS'] unit_includes = [inc, xorg_inc] if build_res unit_sources += ['hashtabletest.c'] - unit_defines += ['-DRES_TESTS'] + unit_c_args += ['-DRES_TESTS'] endif - unit_c_args = unit_defines if meson.get_compiler('c').has_link_argument('-Wl,-wrap') # LTO breaks with -Wl,-wrap on certain configurations unit_c_args += ['-fno-lto']