[Spice-commits] meson.build

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Sep 3 07:51:38 UTC 2018


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

New commits:
commit 99b08f0dd2c921476dee1b2e6c97f2dd11ef50dc
Author: Eduardo Lima (Etrunko) <etrunko at redhat.com>
Date:   Thu Aug 30 12:07:49 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 2db2a953..762f1d1c 100644
--- a/meson.build
+++ b/meson.build
@@ -206,9 +206,8 @@ glib_encoded_version = 'GLIB_VERSION_ at 0@_ at 1@'.format(glib_major_minor[0], glib_m
 spice_server_global_cflags += ['-DGLIB_VERSION_MIN_REQUIRED=@0@'.format(glib_encoded_version),
                                '-DGLIB_VERSION_MAX_ALLOWED=@0@'.format(glib_encoded_version)]
 
-foreach arg : compiler.get_supported_arguments(spice_server_global_cflags)
-  add_project_arguments(arg, language : 'c')
-endforeach
+add_project_arguments(compiler.get_supported_arguments(spice_server_global_cflags),
+                      language : 'c')
 
 #
 # Subdirectories


More information about the Spice-commits mailing list