Mesa (4088-timespec_get-used-unconditionally-build-fails-when-targeting-macos-10-14-or-earlier): Set the C standard version to C11

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Jan 14 17:20:27 UTC 2021


Module: Mesa
Branch: 4088-timespec_get-used-unconditionally-build-fails-when-targeting-macos-10-14-or-earlier
Commit: 1b7c95038c54d79be9e835e9051651e0b2b89f87
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=1b7c95038c54d79be9e835e9051651e0b2b89f87

Author: Jeremy Huddleston Sequoia <jeremyhu at apple.com>
Date:   Thu Jan 14 09:19:27 2021 -0800

Set the C standard version to C11

timespec_get() was added in C11, so we should set the appropriate language version.

https://gitlab.freedesktop.org/mesa/mesa/-/issues/4088

Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu at apple.com>

---

 meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meson.build b/meson.build
index 932eb136681..4ece8cac900 100644
--- a/meson.build
+++ b/meson.build
@@ -26,7 +26,7 @@ project(
   ).stdout(),
   license : 'MIT',
   meson_version : '>= 0.52',
-  default_options : ['buildtype=debugoptimized', 'b_ndebug=if-release', 'c_std=c99', 'cpp_std=c++14']
+  default_options : ['buildtype=debugoptimized', 'b_ndebug=if-release', 'c_std=c11', 'cpp_std=c++14']
 )
 
 cc = meson.get_compiler('c')



More information about the mesa-commit mailing list