build: compile with -std=gnu++1y
It is necessary to enable more C++ features in order to build V8 6.4. PR-URL: https://github.com/nodejs/node/pull/17489 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Myles Borins <myles.borins@gmail.com> Reviewed-By: Ali Ijaz Sheikh <ofrobots@google.com>
This commit is contained in:
parent
0398debe81
commit
4a16a5d988
@ -293,7 +293,7 @@
|
|||||||
}],
|
}],
|
||||||
[ 'OS in "linux freebsd openbsd solaris android aix cloudabi"', {
|
[ 'OS in "linux freebsd openbsd solaris android aix cloudabi"', {
|
||||||
'cflags': [ '-Wall', '-Wextra', '-Wno-unused-parameter', ],
|
'cflags': [ '-Wall', '-Wextra', '-Wno-unused-parameter', ],
|
||||||
'cflags_cc': [ '-fno-rtti', '-fno-exceptions', '-std=gnu++0x' ],
|
'cflags_cc': [ '-fno-rtti', '-fno-exceptions', '-std=gnu++1y' ],
|
||||||
'ldflags': [ '-rdynamic' ],
|
'ldflags': [ '-rdynamic' ],
|
||||||
'target_conditions': [
|
'target_conditions': [
|
||||||
# The 1990s toolchain on SmartOS can't handle thin archives.
|
# The 1990s toolchain on SmartOS can't handle thin archives.
|
||||||
@ -409,7 +409,7 @@
|
|||||||
['clang==1', {
|
['clang==1', {
|
||||||
'xcode_settings': {
|
'xcode_settings': {
|
||||||
'GCC_VERSION': 'com.apple.compilers.llvm.clang.1_0',
|
'GCC_VERSION': 'com.apple.compilers.llvm.clang.1_0',
|
||||||
'CLANG_CXX_LANGUAGE_STANDARD': 'gnu++0x', # -std=gnu++0x
|
'CLANG_CXX_LANGUAGE_STANDARD': 'gnu++1y', # -std=gnu++1y
|
||||||
'CLANG_CXX_LIBRARY': 'libc++',
|
'CLANG_CXX_LIBRARY': 'libc++',
|
||||||
},
|
},
|
||||||
}],
|
}],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user