meson: use correct keyword to fix a meson warning
authorJon Turney <jon.turney@dronecode.org.uk>
Thu, 2 Aug 2018 13:50:27 +0000 (14:50 +0100)
committerJon Turney <jon.turney@dronecode.org.uk>
Thu, 2 Aug 2018 17:12:49 +0000 (18:12 +0100)
With a sufficently recent meson, the following warning is produced:

WARNING: Passed invalid keyword argument "extra_args".
WARNING: This will become a hard error in the future.

It seems that compiler.links(args:) is meant here.

Signed-off-by: Jon Turney <jon.turney@dronecode.org.uk>
Reviewed-and-Tested-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
meson.build

index 86a4a4ce6da1ee00045abb8169a5e352c1b36b2a..cbf88b50139370e0ed635f75e733e66ee57f2ef5 100644 (file)
@@ -989,7 +989,7 @@ if cc.links('''
       freelocale(loc);
       return 0;
     }''',
-    extra_args : pre_args,
+    args : pre_args,
     name : 'strtod has locale support')
   pre_args += '-DHAVE_STRTOD_L'
 endif