From 3e87a4583ff4571ab79cb2d7953b1b918a9e9eb1 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Wed, 2 May 2018 17:05:51 +0900 Subject: [PATCH] meson: drop 'name' argument in cc.has_argument() (#8878) --- meson.build | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/meson.build b/meson.build index 242ff92fa..b40500c55 100644 --- a/meson.build +++ b/meson.build @@ -444,8 +444,7 @@ if cc.get_id() == 'clang' foreach arg : ['-Wno-typedef-redefinition', '-Wno-gnu-variable-sized-type-not-at-end', ] - if cc.has_argument(arg, - name : '@0@ is supported'.format(arg)) + if cc.has_argument(arg) add_project_arguments(arg, language : 'c') endif endforeach @@ -472,8 +471,7 @@ endforeach if get_option('buildtype') != 'debug' foreach arg : ['-ffunction-sections', '-fdata-sections'] - if cc.has_argument(arg, - name : '@0@ is supported'.format(arg)) + if cc.has_argument(arg) add_project_arguments(arg, language : 'c') endif endforeach @@ -1917,6 +1915,7 @@ exe = executable('elogind-inhibit', install : true, install_dir : rootbindir) public_programs += [exe] +executable('elogind-user-runtime-dir', executable('elogind-user-runtime-dir', user_runtime_dir_sources, include_directories : includes, -- 2.30.2