Skip to content

Commit 7edc0da

Browse files
committed
build: switch to C++23
Following Chromium. Closes: #61125 Refs: https://issues.chromium.org/issues/388070065
1 parent 9a6e55a commit 7edc0da

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

common.gypi

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@
298298
# once node-gyp supports them.
299299
'conditions': [
300300
['clang==1', {
301-
'LanguageStandard': 'stdcpp20',
301+
'LanguageStandard': 'stdcpp23',
302302
'LanguageStandard_C': 'stdc11',
303303
'AdditionalOptions': [
304304
'/Zc:__cplusplus',
@@ -308,8 +308,8 @@
308308
}, {
309309
'AdditionalOptions': [
310310
'/Zc:__cplusplus',
311-
# The following option enables c++20 on Windows. This is needed for V8 v12.4+
312-
'-std:c++20',
311+
# The following option enables c++23 on Windows.
312+
'-std:c++23',
313313
# The following option reduces the "error C1060: compiler is out of heap space"
314314
'/Zm2000',
315315
],
@@ -502,7 +502,7 @@
502502
'-fno-rtti',
503503
'-fno-exceptions',
504504
'-fno-strict-aliasing',
505-
'-std=gnu++20',
505+
'-std=gnu++23',
506506
],
507507
'defines': [ '__STDC_FORMAT_MACROS' ],
508508
'ldflags': [ '-rdynamic' ],
@@ -675,7 +675,7 @@
675675
['clang==1', {
676676
'xcode_settings': {
677677
'GCC_VERSION': 'com.apple.compilers.llvm.clang.1_0',
678-
'CLANG_CXX_LANGUAGE_STANDARD': 'gnu++20', # -std=gnu++20
678+
'CLANG_CXX_LANGUAGE_STANDARD': 'gnu++23', # -std=gnu++23
679679
'CLANG_CXX_LIBRARY': 'libc++',
680680
},
681681
}],

0 commit comments

Comments
 (0)