[Spice-commits] meson.build
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Mon Sep 3 07:53:56 UTC 2018
meson.build | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
New commits:
commit 6b93b3fce8909b836ef1d1434d191900d8aa00be
Author: Eduardo Lima (Etrunko) <etrunko at redhat.com>
Date: Thu Aug 30 11:58:55 2018 -0300
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 at redhat.com>
diff --git a/meson.build b/meson.build
index 6fa67dc..5729d12 100644
--- a/meson.build
+++ b/meson.build
@@ -159,9 +159,8 @@ glib_encoded_version = 'GLIB_VERSION_ at 0@_ at 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
More information about the Spice-commits
mailing list