Skip to content

Commit e43c109

Browse files
committed
gyp: build with gnu++0x for the sake of new v8
The new v8 doesn't build on non gnu++0x, set it to a proper value for all systems.
1 parent 50839a0 commit e43c109

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

common.gypi

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@
173173
}],
174174
[ 'OS in "linux freebsd openbsd solaris android"', {
175175
'cflags': [ '-Wall', '-Wextra', '-Wno-unused-parameter', ],
176-
'cflags_cc': [ '-fno-rtti', '-fno-exceptions' ],
176+
'cflags_cc': [ '-fno-rtti', '-fno-exceptions', '-std=gnu++0x' ],
177177
'ldflags': [ '-rdynamic' ],
178178
'target_conditions': [
179179
['_type=="static_library"', {
@@ -237,6 +237,12 @@
237237
['target_arch=="x64"', {
238238
'xcode_settings': {'ARCHS': ['x86_64']},
239239
}],
240+
['clang==1', {
241+
'xcode_settings': {
242+
'GCC_VERSION': 'com.apple.compilers.llvm.clang.1_0',
243+
'CLANG_CXX_LANGUAGE_STANDARD': 'gnu++0x', # -std=gnu++0x
244+
},
245+
}],
240246
],
241247
}],
242248
['OS=="freebsd" and node_use_dtrace=="true"', {

0 commit comments

Comments
 (0)