mirror of
https://github.com/nodejs/node.git
synced 2025-04-30 23:56:58 +00:00

Python 3.9 on IBM i now properly returns "os400" for sys.platform instead of claiming to be AIX as it did previously. While the IBM i PASE environment is compatible with AIX, it is a subset and has numerous differences which makes it beneficial to distinguish, however this means that it now needs explicit support here. PR-URL: https://github.com/nodejs/node/pull/46739 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Richard Lau <rlau@redhat.com>
26 lines
650 B
Python
26 lines
650 B
Python
{
|
|
'targets': [
|
|
{
|
|
'target_name': 'binding',
|
|
'conditions': [
|
|
['OS in "aix os400"', {
|
|
'variables': {
|
|
# Used to differentiate `AIX` and `OS400`(IBM i).
|
|
'aix_variant_name': '<!(uname -s)',
|
|
},
|
|
'conditions': [
|
|
[ '"<(aix_variant_name)"!="OS400"', { # Not `OS400`(IBM i)
|
|
'sources': ['binding.cc'],
|
|
'include_dirs': ['../../../deps/zlib'],
|
|
}],
|
|
],
|
|
}, {
|
|
'sources': ['binding.cc'],
|
|
'include_dirs': ['../../../deps/zlib'],
|
|
}],
|
|
],
|
|
'includes': ['../common.gypi'],
|
|
},
|
|
]
|
|
}
|