summaryrefslogtreecommitdiff
path: root/tools/v8_gypfiles
diff options
context:
space:
mode:
authorXu Meng <mengxumx@cn.ibm.com>2019-07-09 05:19:55 -0500
committerAnna Henningsen <anna@addaleax.net>2019-07-15 00:11:04 +0200
commitd0b0230e7dc536a311e0047c127875c17b998468 (patch)
tree2789dd4a7ad2f1e869154fbda057731b8e65878b /tools/v8_gypfiles
parentebe92611fcc56d32273b5a75a437aabda92be215 (diff)
downloadandroid-node-v8-d0b0230e7dc536a311e0047c127875c17b998468.tar.gz
android-node-v8-d0b0230e7dc536a311e0047c127875c17b998468.tar.bz2
android-node-v8-d0b0230e7dc536a311e0047c127875c17b998468.zip
build,v8: support IBM i
Some libraries do not exist on IBM i (OS400). Commit 417c18e introduces these missing libraries. Need to differentiate `AIX` and `OS400`(IBM i). PR-URL: https://github.com/nodejs/node/pull/28607 Reviewed-By: Beth Griggs <Bethany.Griggs@uk.ibm.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Diffstat (limited to 'tools/v8_gypfiles')
-rw-r--r--tools/v8_gypfiles/v8.gyp20
1 files changed, 14 insertions, 6 deletions
diff --git a/tools/v8_gypfiles/v8.gyp b/tools/v8_gypfiles/v8.gyp
index 46fb49295f..f0a6aeb69e 100644
--- a/tools/v8_gypfiles/v8.gyp
+++ b/tools/v8_gypfiles/v8.gyp
@@ -2536,16 +2536,24 @@
},
}],
['OS=="aix"', {
+ 'variables': {
+ # Used to differentiate `AIX` and `OS400`(IBM i).
+ 'aix_variant_name': '<!(uname -s)',
+ },
'sources': [
'<(V8_ROOT)/src/base/debug/stack_trace_posix.cc',
'<(V8_ROOT)/src/base/platform/platform-aix.cc',
],
- 'link_settings': {
- 'libraries': [
- '-ldl',
- '-lrt'
- ],
- },
+ 'conditions': [
+ [ '"<(aix_variant_name)"=="AIX"', { # It is `AIX`
+ 'link_settings': {
+ 'libraries': [
+ '-ldl',
+ '-lrt'
+ ],
+ },
+ }],
+ ],
}],
['is_android', {
'sources': [