mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice-common
synced 2026-08-08 11:38:08 +00:00
meson: Make use of compiler.get_supported_arguments()
This avoids adding an extra build flag which may not be supported by the compiler. Signed-off-by: Eduardo Lima (Etrunko) <etrunko@redhat.com>
This commit is contained in:
parent
bb15d4815a
commit
6b93b3fce8
@ -159,9 +159,8 @@ glib_encoded_version = 'GLIB_VERSION_@0@_@1@'.format(glib_major_minor[0], glib_m
|
||||
spice_common_global_cflags += ['-DGLIB_VERSION_MIN_REQUIRED=@0@'.format(glib_encoded_version),
|
||||
'-DGLIB_VERSION_MAX_ALLOWED=@0@'.format(glib_encoded_version)]
|
||||
|
||||
foreach arg : spice_common_global_cflags
|
||||
add_project_arguments(arg, language : 'c')
|
||||
endforeach
|
||||
add_project_arguments(compiler.get_supported_arguments(spice_common_global_cflags),
|
||||
language : 'c')
|
||||
|
||||
#
|
||||
# Subdirectories
|
||||
|
||||
Loading…
Reference in New Issue
Block a user