diff options
author | Max Romanov <max.romanov@nginx.com> | 2019-04-01 16:40:33 +0300 |
---|---|---|
committer | Max Romanov <max.romanov@nginx.com> | 2019-04-01 16:40:33 +0300 |
commit | aca42de18ad9877db7e4a7f598a4c5cb55644fe8 (patch) | |
tree | 298e98c7e5163f2d87afeaebe056638247de1a90 /src/nodejs/unit-http/binding_pub.gyp | |
parent | 19eba1730a1ca839ed62a37f34c204f580d1b653 (diff) | |
download | unit-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.gyp | 9 |
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"] }] |