gyp: build with gnu++0x for the sake of new v8
authorFedor Indutny <fedor@indutny.com>
Fri, 10 Oct 2014 22:17:49 +0000 (02:17 +0400)
committerFedor Indutny <fedor@indutny.com>
Sat, 11 Oct 2014 22:05:02 +0000 (02:05 +0400)
The new v8 doesn't build on non gnu++0x, set it to a proper value for
all systems.

common.gypi

index 8886b74..463648b 100644 (file)
       }],
       [ 'OS in "linux freebsd openbsd solaris android"', {
         'cflags': [ '-Wall', '-Wextra', '-Wno-unused-parameter', ],
-        'cflags_cc': [ '-fno-rtti', '-fno-exceptions' ],
+        'cflags_cc': [ '-fno-rtti', '-fno-exceptions', '-std=gnu++0x' ],
         'ldflags': [ '-rdynamic' ],
         'target_conditions': [
           ['_type=="static_library"', {
           ['target_arch=="x64"', {
             'xcode_settings': {'ARCHS': ['x86_64']},
           }],
+          ['clang==1', {
+            'xcode_settings': {
+              'GCC_VERSION': 'com.apple.compilers.llvm.clang.1_0',
+              'CLANG_CXX_LANGUAGE_STANDARD': 'gnu++0x',  # -std=gnu++0x
+            },
+          }],
         ],
       }],
       ['OS=="freebsd" and node_use_dtrace=="true"', {