Chromium Code Reviews| Index: build/standalone.gypi |
| diff --git a/build/standalone.gypi b/build/standalone.gypi |
| index 1fcb8860b4d10e813358b6360699883ce85f4807..dc07960e4ed6b8530e3257323fb54e6ad3e87506 100644 |
| --- a/build/standalone.gypi |
| +++ b/build/standalone.gypi |
| @@ -214,12 +214,9 @@ |
| 'cflags': [ '-Wall', '<(werror)', '-W', '-Wno-unused-parameter', |
| '-Wno-long-long', '-pthread', '-fno-exceptions', |
| '-pedantic' ], |
| - 'cflags_cc': [ '-Wnon-virtual-dtor', '-fno-rtti' ], |
| + 'cflags_cc': [ '-Wnon-virtual-dtor', '-fno-rtti', '-std=c++0x' ], |
|
jochen (gone - plz use gerrit)
2014/08/04 09:02:36
why not c++11?
|
| 'ldflags': [ '-pthread', ], |
| 'conditions': [ |
| - [ 'OS=="linux"', { |
| - 'cflags': [ '-ansi' ], |
| - }], |
| [ 'visibility=="hidden" and v8_enable_backtrace==0', { |
| 'cflags': [ '-fvisibility=hidden' ], |
| }], |
| @@ -235,7 +232,7 @@ |
| 'target_defaults': { |
| 'cflags': [ '-Wall', '<(werror)', '-W', '-Wno-unused-parameter', |
| '-fno-exceptions' ], |
| - 'cflags_cc': [ '-Wnon-virtual-dtor', '-fno-rtti' ], |
| + 'cflags_cc': [ '-Wnon-virtual-dtor', '-fno-rtti', '-std=c++0x' ], |
| 'conditions': [ |
| [ 'visibility=="hidden"', { |
| 'cflags': [ '-fvisibility=hidden' ], |
| @@ -333,7 +330,6 @@ |
| 'target_defaults': { |
| 'xcode_settings': { |
| 'ALWAYS_SEARCH_USER_PATHS': 'NO', |
| - 'GCC_C_LANGUAGE_STANDARD': 'ansi', # -ansi |
| 'GCC_CW_ASM_SYNTAX': 'NO', # No -fasm-blocks |
| 'GCC_DYNAMIC_NO_PIC': 'NO', # No -mdynamic-no-pic |
| # (Equivalent to -fPIC) |
| @@ -369,7 +365,7 @@ |
| ['clang==1', { |
| 'xcode_settings': { |
| 'GCC_VERSION': 'com.apple.compilers.llvm.clang.1_0', |
| - 'CLANG_CXX_LANGUAGE_STANDARD': 'gnu++11', # -std=gnu++11 |
| + 'CLANG_CXX_LANGUAGE_STANDARD': 'c++0x', # -std=c++0x |
| }, |
| }], |
| ], |