summaryrefslogtreecommitdiffhomepage
path: root/src/nodejs/unit-http/binding.gyp
diff options
context:
space:
mode:
authorMax Romanov <max.romanov@nginx.com>2019-04-01 16:40:33 +0300
committerMax Romanov <max.romanov@nginx.com>2019-04-01 16:40:33 +0300
commitaca42de18ad9877db7e4a7f598a4c5cb55644fe8 (patch)
tree298e98c7e5163f2d87afeaebe056638247de1a90 /src/nodejs/unit-http/binding.gyp
parent19eba1730a1ca839ed62a37f34c204f580d1b653 (diff)
downloadunit-aca42de18ad9877db7e4a7f598a4c5cb55644fe8.tar.gz
unit-aca42de18ad9877db7e4a7f598a4c5cb55644fe8.tar.bz2
Adding syntax sugar.
With exceptions and overloads.
Diffstat (limited to '')
-rw-r--r--src/nodejs/unit-http/binding.gyp9
1 files changed, 9 insertions, 0 deletions
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': [
"<!(echo $UNIT_SRC_PATH)", "<!(echo $UNIT_BUILD_PATH)"