From aca42de18ad9877db7e4a7f598a4c5cb55644fe8 Mon Sep 17 00:00:00 2001 From: Max Romanov Date: Mon, 1 Apr 2019 16:40:33 +0300 Subject: Adding syntax sugar. With exceptions and overloads. --- src/nodejs/unit-http/binding.gyp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/nodejs/unit-http/binding.gyp') diff --git a/src/nodejs/unit-http/binding.gyp b/src/nodejs/unit-http/binding.gyp index ee09bfed..55d965bd 100644 --- a/src/nodejs/unit-http/binding.gyp +++ b/src/nodejs/unit-http/binding.gyp @@ -1,6 +1,15 @@ { 'targets': [{ 'target_name': "unit-http", + 'cflags!': [ '-fno-exceptions' ], + 'cflags_cc!': [ '-fno-exceptions' ], + 'conditions': [ + ['OS=="mac"', { + 'xcode_settings': { + 'GCC_ENABLE_CPP_EXCEPTIONS': 'YES' + } + }] + ], 'sources': ["unit.cpp", "addon.cpp"], 'include_dirs': [ "