From 3fa9830f4cde2c01ef1bf15de6c7cd858ad03447 Mon Sep 17 00:00:00 2001 From: Ichthyostega Date: Mon, 17 Mar 2014 02:41:31 +0100 Subject: [PATCH] Switch compilation to C++11 standard with GNU extensions Why GNU extensions? They where on by default previously, so we're changing nothing besides the C++ standard level. AFAIK, we're using a GNU extension at one place, and this could be replaced by 'decltype' now. --- admin/scons/Setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/scons/Setup.py b/admin/scons/Setup.py index 4fae9d85b..96c691643 100644 --- a/admin/scons/Setup.py +++ b/admin/scons/Setup.py @@ -74,7 +74,7 @@ def defineBuildEnvironment(): env.Replace( CPPPATH =["#src"] # used to find includes, "#" means always absolute to build-root , CPPDEFINES=['LUMIERA_VERSION='+VERSION ] # note: it's a list to append further defines , CCFLAGS='-Wall -Wextra' - , CXXFLAGS='-Wno-enum-compare' + , CXXFLAGS='-std=gnu++11 -Wno-enum-compare' , CFLAGS='-std=gnu99' ) env.Append(LINKFLAGS='-Wl,--no-undefined') # require every dependency is given on link, in the right order