Skip to content

Commit

Permalink
gyp: build with gnu++0x for the sake of new v8
Browse files Browse the repository at this point in the history
The new v8 doesn't build on non gnu++0x, set it to a proper value for
all systems.
  • Loading branch information
indutny committed Oct 11, 2014
1 parent 50839a0 commit e43c109
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion common.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@
}],
[ '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"', {
Expand Down Expand Up @@ -237,6 +237,12 @@
['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"', {
Expand Down

0 comments on commit e43c109

Please sign in to comment.