summaryrefslogtreecommitdiffhomepage
path: root/src/nodejs/unit-http/binding_pub.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_pub.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_pub.gyp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/nodejs/unit-http/binding_pub.gyp b/src/nodejs/unit-http/binding_pub.gyp
index 6fe3d9bc..3c39933a 100644
--- a/src/nodejs/unit-http/binding_pub.gyp
+++ b/src/nodejs/unit-http/binding_pub.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"],
'libraries': ["-lunit"]
}]