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

This commit is contained in:
Yu Watanabe
2018-05-02 10:05:51 +02:00
committed by Lennart Poettering
parent 773c84349d
commit b0903bb585
+1 -2
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