Skip to content
This repository was archived by the owner on Nov 8, 2024. It is now read-only.

Commit

Permalink
refactor: switch to c++14 when building with gyp
Browse files Browse the repository at this point in the history
NodeJS 16 onwards no longer supports building with c++11

See nodejs/node#38367
  • Loading branch information
kylef committed May 17, 2023
1 parent 83763e8 commit 0fe8e6e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions common.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
[ 'OS in "linux freebsd openbsd solaris android"', {
'cflags': [ '-Wall', '-Wextra', '-Wno-unused-parameter', '-Wno-comment' ],
'cflags_cc!': [ '-fno-rtti', '-fno-exceptions' ],
'cflags_cc': [ '-std=c++11' ],
'cflags_cc': [ '-std=c++14' ],
'ldflags': [ '-rdynamic' ],
'target_conditions': [
['_type=="static_library"', {
Expand Down Expand Up @@ -139,7 +139,7 @@
'OTHER_CFLAGS': [
'-fno-strict-aliasing',
],
'CLANG_CXX_LANGUAGE_STANDARD': 'c++11',
'CLANG_CXX_LANGUAGE_STANDARD': 'c++14',
'CLANG_CXX_LIBRARY': 'libc++',
'WARNING_CFLAGS': [
'-Wall',
Expand Down

0 comments on commit 0fe8e6e

Please sign in to comment.