[Mesa-dev] [PATCH 3/5] meson: set C++ standard to C++11

Dylan Baker dylan at pnwbakers.com
Sun Oct 1 03:58:26 UTC 2017


RadeonSI requires C++11, clover requires C++11, LLVM requires it, so
llvmpipe may require it, and that cover most of the C++ code in mesa.

Signed-off-by: Dylan Baker <dylanx.c.baker at intel.com>
---
 meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meson.build b/meson.build
index 15f7f0ea64f..9bc50abe860 100644
--- a/meson.build
+++ b/meson.build
@@ -19,7 +19,7 @@
 # SOFTWARE.
 
 project('mesa', ['c', 'cpp'], version : '17.3.0-devel', license : 'MIT',
-        default_options : ['c_std=c99'])
+        default_options : ['c_std=c99', 'cpp_std=c++11'])
 
 with_dri3 = true  # XXX: need a switch for this
 with_vulkan_icd_dir = get_option('vulkan_icd_dir')
-- 
2.14.1



More information about the mesa-dev mailing list