summaryrefslogtreecommitdiff
path: root/tools/v8_gypfiles/v8.gyp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/v8_gypfiles/v8.gyp')
-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': [