Skip to content

Commit 209b353

Browse files
dmabupttargos
authored andcommitted
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: #28607 Reviewed-By: Beth Griggs <[email protected]> Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Michael Dawson <[email protected]>
1 parent 9ffa5fb commit 209b353

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

tools/v8_gypfiles/v8.gyp

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2536,16 +2536,24 @@
25362536
},
25372537
}],
25382538
['OS=="aix"', {
2539+
'variables': {
2540+
# Used to differentiate `AIX` and `OS400`(IBM i).
2541+
'aix_variant_name': '<!(uname -s)',
2542+
},
25392543
'sources': [
25402544
'<(V8_ROOT)/src/base/debug/stack_trace_posix.cc',
25412545
'<(V8_ROOT)/src/base/platform/platform-aix.cc',
25422546
],
2543-
'link_settings': {
2544-
'libraries': [
2545-
'-ldl',
2546-
'-lrt'
2547-
],
2548-
},
2547+
'conditions': [
2548+
[ '"<(aix_variant_name)"=="AIX"', { # It is `AIX`
2549+
'link_settings': {
2550+
'libraries': [
2551+
'-ldl',
2552+
'-lrt'
2553+
],
2554+
},
2555+
}],
2556+
],
25492557
}],
25502558
['is_android', {
25512559
'sources': [

0 commit comments

Comments
 (0)