Skip to content

Commit 61a827f

Browse files
targoseliphazbouye
authored andcommitted
build: compile with C++20 support
Closes: nodejs#45402 PR-URL: nodejs#45427 Fixes: nodejs#45402 Reviewed-By: Michael Dawson <[email protected]> Reviewed-By: Steven R Loomis <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Stephen Belanger <[email protected]> Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: Moshe Atlow <[email protected]> Reviewed-By: Ulises Gascón <[email protected]>
1 parent eee57f9 commit 61a827f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

common.gypi

+2-2
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@
470470
}],
471471
[ 'OS in "linux freebsd openbsd solaris android aix os400 cloudabi"', {
472472
'cflags': [ '-Wall', '-Wextra', '-Wno-unused-parameter', ],
473-
'cflags_cc': [ '-fno-rtti', '-fno-exceptions', '-std=gnu++17' ],
473+
'cflags_cc': [ '-fno-rtti', '-fno-exceptions', '-std=gnu++20' ],
474474
'defines': [ '__STDC_FORMAT_MACROS' ],
475475
'ldflags': [ '-rdynamic' ],
476476
'target_conditions': [
@@ -638,7 +638,7 @@
638638
['clang==1', {
639639
'xcode_settings': {
640640
'GCC_VERSION': 'com.apple.compilers.llvm.clang.1_0',
641-
'CLANG_CXX_LANGUAGE_STANDARD': 'gnu++17', # -std=gnu++17
641+
'CLANG_CXX_LANGUAGE_STANDARD': 'gnu++20', # -std=gnu++20
642642
'CLANG_CXX_LIBRARY': 'libc++',
643643
},
644644
}],

0 commit comments

Comments
 (0)