Skip to content

Commit 03b4a3a

Browse files
RaisinTentargos
authored andcommitted
build: compile with -std=gnu++14
The name ‘gnu++1y’ is deprecated. Refs: https://gcc.gnu.org/onlinedocs/gcc/C-Dialect-Options.html PR-URL: #38504 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
1 parent e0118f3 commit 03b4a3a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

common.gypi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@
375375
}],
376376
[ 'OS in "linux freebsd openbsd solaris android aix cloudabi"', {
377377
'cflags': [ '-Wall', '-Wextra', '-Wno-unused-parameter', ],
378-
'cflags_cc': [ '-fno-rtti', '-fno-exceptions', '-std=gnu++1y' ],
378+
'cflags_cc': [ '-fno-rtti', '-fno-exceptions', '-std=gnu++14' ],
379379
'defines': [ '__STDC_FORMAT_MACROS' ],
380380
'ldflags': [ '-rdynamic' ],
381381
'target_conditions': [
@@ -519,7 +519,7 @@
519519
['clang==1', {
520520
'xcode_settings': {
521521
'GCC_VERSION': 'com.apple.compilers.llvm.clang.1_0',
522-
'CLANG_CXX_LANGUAGE_STANDARD': 'gnu++1y', # -std=gnu++1y
522+
'CLANG_CXX_LANGUAGE_STANDARD': 'gnu++14', # -std=gnu++14
523523
'CLANG_CXX_LIBRARY': 'libc++',
524524
},
525525
}],

0 commit comments

Comments
 (0)