Skip to content

Commit c7e4209

Browse files
authoredMay 5, 2024··
build: compile with C++20 support
Closes: #45402 PR-URL: #45427 Fixes: #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>
1 parent c6f8e18 commit c7e4209

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

Diff for: ‎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)
Please sign in to comment.