From 575a0e50a0b9580c90d3bbf26a8b7904efc9ab06 Mon Sep 17 00:00:00 2001 From: James Robinson Date: Fri, 22 Jul 2016 16:02:32 -0700 Subject: [PATCH] Switch from gnu++11 to c++11 on android and linux (flutter/engine#2819) --- engine/src/flutter/build/config/compiler/BUILD.gn | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/engine/src/flutter/build/config/compiler/BUILD.gn b/engine/src/flutter/build/config/compiler/BUILD.gn index 321bfb5fa6..b5e97501ae 100644 --- a/engine/src/flutter/build/config/compiler/BUILD.gn +++ b/engine/src/flutter/build/config/compiler/BUILD.gn @@ -509,17 +509,9 @@ config("compiler") { # C++11 compiler flags setup. # --------------------------- - if (is_linux || is_android || is_nacl) { - # gnu++11 instead of c++11 is needed because some code uses typeof() (a - # GNU extension). - # TODO(thakis): Eventually switch this to c++11 instead, - # http://crbug.com/427584 - cflags_cc += [ "-std=gnu++11" ] - } else if (!is_win) { - cc_std = [ "-std=c++11" ] - cflags_cc += cc_std - cflags_objcc += cc_std - } + cc_std = [ "-std=c++11" ] + cflags_cc += cc_std + cflags_objcc += cc_std # Android-specific flags setup. # -----------------------------