From 0aaea4b4ff6edf81e849d24c3ac82f5d4c2d0531 Mon Sep 17 00:00:00 2001 From: dimmus Date: Fri, 22 Dec 2023 09:31:37 +0500 Subject: [PATCH] meson: use get_supported_arguments instead of manual loop --- meson.build | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/meson.build b/meson.build index c6aa47c774..5bc9f2c66a 100644 --- a/meson.build +++ b/meson.build @@ -83,16 +83,10 @@ dev_cflags_try = [ '-Wno-missing-field-initializers', ] -foreach cf: dev_cflags_try - if cc.has_argument(cf) - dev_cflags += cf - endif -endforeach - +dev_cflags = cc.get_supported_arguments(dev_cflags_try) add_project_arguments(dev_cflags, language: 'c') add_project_arguments(dev_cflags, language: 'cpp') - langs = ['c', 'objc', 'cpp'] add_project_arguments('-DHAVE_CONFIG_H=1', language: langs) add_project_arguments('-D_GNU_SOURCE=1', language: langs)