Mesa (master): meson: set C++ standard to C++11

Dylan Baker dbaker at kemper.freedesktop.org
Tue Oct 3 17:03:43 UTC 2017


Module: Mesa
Branch: master
Commit: 052c0d5edacf377a4b36cc9fee2945f8a9b38787
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=052c0d5edacf377a4b36cc9fee2945f8a9b38787

Author: Dylan Baker <dylan at pnwbakers.com>
Date:   Sat Sep 30 20:04:09 2017 -0700

meson: set C++ standard to C++11

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

Signed-off-by: Dylan Baker <dylanx.c.baker at intel.com>
Reviewed-by: Eric Anholt <eric at anholt.net>

---

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

diff --git a/meson.build b/meson.build
index b1bd73691e..5de64acefd 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')




More information about the mesa-commit mailing list