From: Yu Watanabe Date: Wed, 2 May 2018 08:05:51 +0000 (+0900) Subject: meson: drop 'name' argument in cc.has_argument() (#8878) X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=3e87a4583ff4571ab79cb2d7953b1b918a9e9eb1;p=elogind.git meson: drop 'name' argument in cc.has_argument() (#8878) --- 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,