chiark / gitweb /
meson: drop 'name' argument in cc.has_argument() (#8878)
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 2 May 2018 08:05:51 +0000 (17:05 +0900)
committerSven Eden <yamakuzure@gmx.net>
Thu, 28 Jun 2018 07:24:07 +0000 (09:24 +0200)
(cherry picked from commit b0903bb585d2158f78a4cf603fde4aed5474e2b9)

meson.build

index aa1234a1421b613222ff53e988109e0368f7d43c..3145ee9de68ed5bf7e2c8036ba3cfe25901450de 100644 (file)
@@ -498,8 +498,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