Skip to content

Commit

Permalink
build: compile with C++20 support
Browse files Browse the repository at this point in the history
Closes: nodejs#45402
  • Loading branch information
targos committed Nov 11, 2022
1 parent 4107ce0 commit 0065fd6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions common.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@
'VCCLCompilerTool': {
'AdditionalOptions': [
'/Zc:__cplusplus',
'-std:c++17'
'-std:c++20'
],
'BufferSecurityCheck': 'true',
'target_conditions': [
Expand Down Expand Up @@ -403,7 +403,7 @@
}],
[ 'OS in "linux freebsd openbsd solaris android aix cloudabi"', {
'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' ],
'ldflags': [ '-rdynamic' ],
'target_conditions': [
Expand Down Expand Up @@ -543,7 +543,7 @@
['clang==1', {
'xcode_settings': {
'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++',
},
}],
Expand Down

0 comments on commit 0065fd6

Please sign in to comment.