diff options
author | Xu Meng <mengxumx@cn.ibm.com> | 2019-07-09 05:19:55 -0500 |
---|---|---|
committer | Michaƫl Zasso <targos@protonmail.com> | 2019-07-20 11:10:27 +0200 |
commit | 209b353ff4999dcbc1067dac5e2028f534dcacad (patch) | |
tree | 1982a81fe6797559b39f242c1a6adac55228a594 /tools | |
parent | 9ffa5fb6b8777ef8097c566f0ee7317d108003a9 (diff) | |
download | android-node-v8-209b353ff4999dcbc1067dac5e2028f534dcacad.tar.gz android-node-v8-209b353ff4999dcbc1067dac5e2028f534dcacad.tar.bz2 android-node-v8-209b353ff4999dcbc1067dac5e2028f534dcacad.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')
-rw-r--r-- | tools/v8_gypfiles/v8.gyp | 20 |
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': [ |