about summary refs log tree commit diff
path: root/src/bootstrap
diff options
context:
space:
mode:
authorKai Luo <lkail@cn.ibm.com>2023-09-13 16:05:50 +0800
committerKai Luo <lkail@cn.ibm.com>2023-09-13 16:05:50 +0800
commitfc17e09029a4f01fb59778e8575faa99a08f289a (patch)
tree5a9dd02665f00b742fddb9533f1d0261f752fef8 /src/bootstrap
parent2962528b4accdf1d0c2b219568c4ef115f78a503 (diff)
downloadrust-fc17e09029a4f01fb59778e8575faa99a08f289a.tar.gz
rust-fc17e09029a4f01fb59778e8575faa99a08f289a.zip
Add comment to elaborate
Diffstat (limited to 'src/bootstrap')
-rw-r--r--src/bootstrap/bootstrap.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/bootstrap/bootstrap.py b/src/bootstrap/bootstrap.py
index bc8b5326d8d..eca3a522f80 100644
--- a/src/bootstrap/bootstrap.py
+++ b/src/bootstrap/bootstrap.py
@@ -313,6 +313,12 @@ def default_build_triple(verbose):
         # these cases, fall back to using sys.platform.
         return 'x86_64-pc-windows-msvc'
     elif kernel == 'AIX':
+        # `uname -m` returns the machine ID rather than machine hardware on AIX,
+        # so we are unable to use cputype to form triple. Since AIX 7.2 and
+        # above supports 32-bit and 64-bit mode simultaneously and `uname -p`
+        # returns `powerpc`. Currently we only supports `powerpc64-ibm-aix` in
+        # rust. For above reasons, kerneltype_mapper and cputype_mapper are not
+        # used to infer AIX's triple.
         return 'powerpc64-ibm-aix'
     else:
         err = "unknown OS type: {}".format(kernel)