build: compile with C++20 support
Closes: https://github.com/nodejs/node/issues/45402 PR-URL: https://github.com/nodejs/node/pull/45427 Fixes: https://github.com/nodejs/node/issues/45402 Reviewed-By: Michael Dawson <midawson@redhat.com> Reviewed-By: Steven R Loomis <srl295@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Stephen Belanger <admin@stephenbelanger.com> Reviewed-By: Yagiz Nizipli <yagiz.nizipli@sentry.io> Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: Ulises Gascón <ulisesgascongonzalez@gmail.com>
This commit is contained in:
parent
c6f8e18741
commit
c7e42092f3
@ -470,7 +470,7 @@
|
|||||||
}],
|
}],
|
||||||
[ 'OS in "linux freebsd openbsd solaris android aix os400 cloudabi"', {
|
[ 'OS in "linux freebsd openbsd solaris android aix os400 cloudabi"', {
|
||||||
'cflags': [ '-Wall', '-Wextra', '-Wno-unused-parameter', ],
|
'cflags': [ '-Wall', '-Wextra', '-Wno-unused-parameter', ],
|
||||||
'cflags_cc': [ '-fno-rtti', '-fno-exceptions', '-std=gnu++17' ],
|
'cflags_cc': [ '-fno-rtti', '-fno-exceptions', '-std=gnu++20' ],
|
||||||
'defines': [ '__STDC_FORMAT_MACROS' ],
|
'defines': [ '__STDC_FORMAT_MACROS' ],
|
||||||
'ldflags': [ '-rdynamic' ],
|
'ldflags': [ '-rdynamic' ],
|
||||||
'target_conditions': [
|
'target_conditions': [
|
||||||
@ -638,7 +638,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++17', # -std=gnu++17
|
'CLANG_CXX_LANGUAGE_STANDARD': 'gnu++20', # -std=gnu++20
|
||||||
'CLANG_CXX_LIBRARY': 'libc++',
|
'CLANG_CXX_LIBRARY': 'libc++',
|
||||||
},
|
},
|
||||||
}],
|
}],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user