mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 05:54:08 +00:00
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.
This commit is contained in:
@@ -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']
|
||||
|
||||
Reference in New Issue
Block a user