aboutsummaryrefslogtreecommitdiffstats
path: root/meson.build
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@samsung.com>2018-11-12 15:43:13 +0100
committerDaniel Kolesa <d.kolesa@samsung.com>2018-11-12 15:43:13 +0100
commitac95f38d1b06ac6977ea6d8b9f14f9405396858f (patch)
treef6bcca4f1acb46dcbece424cf0aa9d05de5af1ac /meson.build
parentefl interface: update efl_gfx_shape_stroke_dash doc. (diff)
downloadefl-ac95f38d1b06ac6977ea6d8b9f14f9405396858f.tar.gz
cxx: explicitly require c++11 and fix tests to conform
We weren't setting a C++ version for build previously, which would result in compiler specific default being used, most likely C++11 with GNU extensions on modern compilers and C++03 with GNU exts on old compilers. This is bad because it potentially breaks build on older toolchains that don't default to a modern C++. Now we enable pure C++11 without GNU exts; this resulted in some of the build breaking because of use of typeof() GNU C/C++ ext in tests code, so fix that to use standard decltype() from C++11. @fix
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build2
1 files changed, 1 insertions, 1 deletions
diff --git a/meson.build b/meson.build
index 6e1a574ca8..9c090149fa 100644
--- a/meson.build
+++ b/meson.build
@@ -1,6 +1,6 @@
project('efl', ['c','cpp'],
version: '1.21.99',
- default_options : ['buildtype=plain'],
+ default_options : ['buildtype=plain', 'cpp_std=c++11'],
meson_version : '>=0.47'
)