[Spice-commits] meson.build

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Sep 4 14:09:59 UTC 2018


 meson.build |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

New commits:
commit 21143797e5c66a7db532cdace8529ebcae972e70
Author: Eduardo Lima (Etrunko) <etrunko at redhat.com>
Date:   Thu Aug 30 12:08:03 2018 -0300

    meson: Fix usage of add_project_arguments()
    
    This function does accept a list of arguments, so there is no need to
    iterate over it.
    
    Signed-off-by: Eduardo Lima (Etrunko) <etrunko at redhat.com>
    Acked-by: Frediano Ziglio <fziglio at redhat.com>

diff --git a/meson.build b/meson.build
index 4ec17c4..98d0413 100644
--- a/meson.build
+++ b/meson.build
@@ -390,9 +390,8 @@ if spice_gtk_has_gtk
                               '-DGDK_VERSION_MAX_ALLOWED=@0@'.format(gtk_encoded_version)]
 endif
 
-foreach arg : compiler.get_supported_arguments(spice_gtk_global_cflags)
-  add_project_arguments(arg, language : 'c')
-endforeach
+add_project_arguments(compiler.get_supported_arguments(spice_gtk_global_cflags),
+                      language : 'c')
 
 #
 # Subdirectories


More information about the Spice-commits mailing list