Skip to content

Commit 11d2ddd

Browse files
authored
Merge pull request #968 from laijonathan/zos_fix
2 parents 0884c5b + fd00ae0 commit 11d2ddd

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

binding.gyp

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
{
2+
"variables": {
3+
"NODE_VERSION%":"<!(node -p \"process.versions.node.split(\\\".\\\")[0]\")"
4+
},
25
'targets': [
36
{
47
'target_name': 'bcrypt_lib',
@@ -35,10 +38,11 @@
3538
'GCC_SYMBOLS_PRIVATE_EXTERN': 'YES', # -fvisibility=hidden
3639
}
3740
}],
38-
[ 'OS=="zos"', {
39-
'cflags': [
40-
'-qascii',
41-
],
41+
['OS=="zos" and NODE_VERSION <= 16',{
42+
'cflags': [
43+
'-qascii',
44+
],
45+
'defines': ["NAPI_DISABLE_CPP_EXCEPTIONS"],
4246
}],
4347
],
4448
},

0 commit comments

Comments
 (0)