Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarshan Sen <raisinten@gmail.com>2021-05-02 16:44:58 +0300
committerJames M Snell <jasnell@gmail.com>2021-05-04 23:20:21 +0300
commitf9d6de41a7cb7e512eab4e8ed9b9a5dbfbac11e2 (patch)
tree5a8ea71f220b59fcfa93e9098a83318ef4e9369d /common.gypi
parent3219309d507d5a393f0e3b71aa4f5fa12e8e5b1c (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.gypi4
1 files changed, 2 insertions, 2 deletions
diff --git a/common.gypi b/common.gypi
index be7c06d4c81..eaa59972d78 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++',
},
}],