Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zos: rebase and apply custom compile flags to support Node v12 and v14 #1

Merged
merged 12 commits into from
Jul 10, 2020
22 changes: 19 additions & 3 deletions binding.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@
['OS=="linux" or OS=="mac" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"', {
'javalibdir%': "<!(./find_java_libdir.sh <(target_arch) <(OS))"
}],
['OS=="zos"', {
'nodever%': '<!(node -e "console.log(process.versions.node)" | cut -d"." -f1)',
}],
]
},
'targets': [
Expand Down Expand Up @@ -101,9 +104,22 @@
]
}
],
["OS=='zos'", {
"cflags!": [ "-O2", "-O3" ]
}],
['OS=="zos"',
{
'conditions': [
['nodever<14',
{
'cflags!': [ "-O2", "-O3" ]
}
],
['nodever<12',
{
'cflags': [ "-U_VARARG_EXT_" ],
}
]
]
}
],
['OS=="mac"',
{
'xcode_settings': {
Expand Down
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"jvm",
"bridge"
],
"version": "0.11.1",
"version": "0.12.1",
"engines": {
"node": ">=7.0.0"
},
Expand Down
Loading