mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
test: only detect uname on supported os
To skip some tests on IBMi PASE, we use uname to detect the true os name, but on Windows machines there is no uname available. PR-URL: https://github.com/nodejs/node/pull/32833 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Sam Roberts <vieuxtech@gmail.com> Reviewed-By: Ujjwal Sharma <ryzokuken@disroot.org> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Richard Lau <riclau@uk.ibm.com>
This commit is contained in:
1 parent
7fe61222ef
commit
d1b41bbd86
2 files changed
+30
-13
No files matched your search
@@ -3,15 +3,25 @@
|
||||
{
|
||||
'target_name': 'binding',
|
||||
'includes': ['../common.gypi'],
|
||||
'variables': {
|
||||
# Skip this building on IBM i.
|
||||
'aix_variant_name': '<!(uname -s)',
|
||||
},
|
||||
'conditions': [
|
||||
['node_use_openssl=="true" and '
|
||||
'"<(aix_variant_name)"!="OS400"', {
|
||||
'sources': ['binding.cc'],
|
||||
'include_dirs': ['../../../deps/openssl/openssl/include'],
|
||||
['node_use_openssl=="true"', {
|
||||
'conditions': [
|
||||
['OS=="aix"', {
|
||||
'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': {
|
||||
|
||||
@@ -2,12 +2,19 @@
|
||||
'targets': [
|
||||
{
|
||||
'target_name': 'binding',
|
||||
'variables': {
|
||||
# Skip this building on IBM i.
|
||||
'aix_variant_name': '<!(uname -s)',
|
||||
},
|
||||
'conditions': [
|
||||
[ '"<(aix_variant_name)"!="OS400"', {
|
||||
['OS=="aix"', {
|
||||
'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'],
|
||||
}],
|
||||
|
||||
Reference in new issue
Block a user