From 1abd120c12ac864b9446e647c1c4b047707c7138 Mon Sep 17 00:00:00 2001 From: Kenton Varda Date: Mon, 7 Jan 2019 13:40:56 -0800 Subject: [PATCH] Update to C++14 as required by Cap'n Proto 0.7. --- binding.gyp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/binding.gyp b/binding.gyp index d10334c..4641dea 100644 --- a/binding.gyp +++ b/binding.gyp @@ -4,12 +4,12 @@ 'target_name': 'capnp', 'sources': ['src/node-capnp/capnp.cc'], 'libraries': ['-lkj', '-lkj-async', '-lcapnp', '-lcapnpc', '-lcapnp-rpc'], - 'cflags_cc': ['-std=c++11'], + 'cflags_cc': ['-std=c++14'], 'cflags_cc!': ['-fno-rtti', '-fno-exceptions'], 'conditions': [ [ 'OS=="mac"', { 'xcode_settings': { - 'OTHER_CPLUSPLUSFLAGS' : ['-std=c++11','-stdlib=libc++'], + 'OTHER_CPLUSPLUSFLAGS' : ['-std=c++14','-stdlib=libc++'], 'OTHER_LDFLAGS': ['-stdlib=libc++'], 'GCC_ENABLE_CPP_RTTI': 'YES', 'GCC_ENABLE_CPP_EXCEPTIONS': 'YES',