meson: drop 'name' argument in cc.has_argument() (#8878)

This commit is contained in:
Yu Watanabe 2018-05-02 17:05:51 +09:00 committed by Lennart Poettering
parent 773c84349d
commit b0903bb585
1 changed files with 1 additions and 2 deletions

View File

@ -401,8 +401,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