drm-shim/meson: Use portable override_options for setting C standard
authorDylan Baker <dylan.c.baker@intel.com>
Tue, 19 May 2020 21:19:25 +0000 (14:19 -0700)
committerMarge Bot <eric+marge@anholt.net>
Mon, 1 Jun 2020 18:59:18 +0000 (18:59 +0000)
Acked-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Eric Engestrom <eric@engestrom.ch>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4740>

src/drm-shim/meson.build

index 39d739610ab70226b449e77174187af243993fd3..b1f238c27ec52b959e517a113921f4c255656049 100644 (file)
@@ -27,7 +27,8 @@ drm_shim = static_library(
   ],
   include_directories: [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux],
   dependencies: [dep_libdrm, idep_mesautil, dep_dl],
-  c_args : [c_vis_args, '-std=gnu99'],
+  c_args : [c_vis_args],
+  override_options : ['c_std=gnu99'],
 )
 dep_drm_shim = declare_dependency(
   link_with: drm_shim,