mirror of
https://github.com/nodejs/node.git
synced 2025-05-02 20:25:27 +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>
39 lines
1.1 KiB
Python
39 lines
1.1 KiB
Python
{
|
|
'targets': [
|
|
{
|
|
'target_name': 'binding',
|
|
'includes': ['../common.gypi'],
|
|
'conditions': [
|
|
['node_use_openssl=="true"', {
|
|
'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/openssl/openssl/include'],
|
|
}],
|
|
],
|
|
}, {
|
|
'sources': ['binding.cc'],
|
|
'include_dirs': ['../../../deps/openssl/openssl/include'],
|
|
}],
|
|
],
|
|
}],
|
|
['OS=="mac"', {
|
|
'xcode_settings': {
|
|
'OTHER_CFLAGS+': [
|
|
'-Wno-deprecated-declarations',
|
|
],
|
|
},
|
|
}, {
|
|
'cflags': ['-Wno-deprecated-declarations'],
|
|
}],
|
|
],
|
|
},
|
|
]
|
|
}
|