summaryrefslogtreecommitdiffstats
path: root/core/config.mk
diff options
context:
space:
mode:
authorDan Albert <danalbert@google.com>2014-09-08 19:06:04 -0700
committerDan Albert <danalbert@google.com>2014-11-24 15:53:31 -0800
commitbf0426f474bdb7dc4a79bb5e593991094f2caf50 (patch)
treec61fa9d929f7869aa8b6b0d5d213570db33d841d /core/config.mk
parent7adbb466597a52873605b14950e70f3d2bc0f4c8 (diff)
downloadbuild-bf0426f474bdb7dc4a79bb5e593991094f2caf50.zip
build-bf0426f474bdb7dc4a79bb5e593991094f2caf50.tar.gz
build-bf0426f474bdb7dc4a79bb5e593991094f2caf50.tar.bz2
Make gnu++11 the default standard version.
There are a _lot_ of users of `typeof` in the tree, and they'll need a GNU flavored standard. Rather than fixing up all of these individually, let's just use gnu++11 as the default. Bug: 18466763 Change-Id: Ia1bd3adaa74fadba259fda3d37653fb8d5cff69a
Diffstat (limited to 'core/config.mk')
-rw-r--r--core/config.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/config.mk b/core/config.mk
index aa82e93..c9453ef 100644
--- a/core/config.mk
+++ b/core/config.mk
@@ -117,7 +117,7 @@ SHOW_COMMANDS:= $(filter showcommands,$(MAKECMDGOALS))
COMMON_GLOBAL_CFLAGS:= -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith
COMMON_RELEASE_CFLAGS:= -DNDEBUG -UDEBUG
-COMMON_GLOBAL_CPPFLAGS:= $(COMMON_GLOBAL_CFLAGS) -Wsign-promo
+COMMON_GLOBAL_CPPFLAGS:= $(COMMON_GLOBAL_CFLAGS) -Wsign-promo -std=gnu++11
COMMON_RELEASE_CPPFLAGS:= $(COMMON_RELEASE_CFLAGS)
# Set the extensions used for various packages