diff options
author | Darshan Sen <raisinten@gmail.com> | 2021-05-02 16:44:58 +0300 |
---|---|---|
committer | Michaël Zasso <targos@protonmail.com> | 2021-05-17 10:11:26 +0300 |
commit | 03b4a3a5bf022a98c01856e3836cf3285af6d29f (patch) | |
tree | 04c2f4baa1bc39d0b9768357ab6dfa8617e4c798 /common.gypi | |
parent | e0118f347ae70ecbc81800f1b8a9eb7bd5206a86 (diff) |
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: https://github.com/nodejs/node/pull/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>
Diffstat (limited to 'common.gypi')
-rw-r--r-- | common.gypi | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common.gypi b/common.gypi index e5f01195e63..0cab2b8fd68 100644 --- a/common.gypi +++ b/common.gypi @@ -375,7 +375,7 @@ }], [ 'OS in "linux freebsd openbsd solaris android aix cloudabi"', { 'cflags': [ '-Wall', '-Wextra', '-Wno-unused-parameter', ], - 'cflags_cc': [ '-fno-rtti', '-fno-exceptions', '-std=gnu++1y' ], + 'cflags_cc': [ '-fno-rtti', '-fno-exceptions', '-std=gnu++14' ], 'defines': [ '__STDC_FORMAT_MACROS' ], 'ldflags': [ '-rdynamic' ], 'target_conditions': [ @@ -519,7 +519,7 @@ ['clang==1', { 'xcode_settings': { 'GCC_VERSION': 'com.apple.compilers.llvm.clang.1_0', - 'CLANG_CXX_LANGUAGE_STANDARD': 'gnu++1y', # -std=gnu++1y + 'CLANG_CXX_LANGUAGE_STANDARD': 'gnu++14', # -std=gnu++14 'CLANG_CXX_LIBRARY': 'libc++', }, }], |