Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(92)

Side by Side Diff: build/config/compiler/BUILD.gn

Issue 1522653002: Use std=c++11 instead of std=gnu++11 everywhere except nacl (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | sandbox/linux/services/credentials_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import("//build/config/android/config.gni") 5 import("//build/config/android/config.gni")
6 import("//build/config/chrome_build.gni") 6 import("//build/config/chrome_build.gni")
7 if (current_cpu == "arm") { 7 if (current_cpu == "arm") {
8 import("//build/config/arm.gni") 8 import("//build/config/arm.gni")
9 } 9 }
10 if (current_cpu == "mipsel" || current_cpu == "mips64el") { 10 if (current_cpu == "mipsel" || current_cpu == "mips64el") {
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after
442 } 442 }
443 443
444 # Clang-specific compiler flags setup. 444 # Clang-specific compiler flags setup.
445 # ------------------------------------ 445 # ------------------------------------
446 if (is_clang) { 446 if (is_clang) {
447 cflags += [ "-fcolor-diagnostics" ] 447 cflags += [ "-fcolor-diagnostics" ]
448 } 448 }
449 449
450 # C++11 compiler flags setup. 450 # C++11 compiler flags setup.
451 # --------------------------- 451 # ---------------------------
452 if (is_linux || is_android || is_nacl) { 452 if (is_nacl) {
453 # gnu++11 instead of c++11 is needed because some code uses typeof() (a 453 # gnu++11 instead of c++11 is needed because some code uses typeof() (a
454 # GNU extension). 454 # GNU extension).
455 # TODO(thakis): Eventually switch this to c++11 instead, 455 # TODO(thakis): Eventually switch this to c++11 instead,
456 # http://crbug.com/427584 456 # http://crbug.com/427584
457 cflags_cc += [ "-std=gnu++11" ] 457 cflags_cc += [ "-std=gnu++11" ]
458 } else { 458 } else {
459 cflags_cc += [ "-std=c++11" ] 459 cflags_cc += [ "-std=c++11" ]
460 } 460 }
461 461
462 # Android-specific flags setup. 462 # Android-specific flags setup.
(...skipping 664 matching lines...) Expand 10 before | Expand all | Expand 10 after
1127 if (symbol_level == 0) { 1127 if (symbol_level == 0) {
1128 configs = [ ":no_symbols" ] 1128 configs = [ ":no_symbols" ]
1129 } else if (symbol_level == 1) { 1129 } else if (symbol_level == 1) {
1130 configs = [ ":minimal_symbols" ] 1130 configs = [ ":minimal_symbols" ]
1131 } else if (symbol_level == 2) { 1131 } else if (symbol_level == 2) {
1132 configs = [ ":symbols" ] 1132 configs = [ ":symbols" ]
1133 } else { 1133 } else {
1134 assert(false) 1134 assert(false)
1135 } 1135 }
1136 } 1136 }
OLDNEW
« no previous file with comments | « no previous file | sandbox/linux/services/credentials_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698