Add comment to elaborate
This commit is contained in:
parent
2962528b4a
commit
fc17e09029
@ -313,6 +313,12 @@ def default_build_triple(verbose):
|
|||||||
# these cases, fall back to using sys.platform.
|
# these cases, fall back to using sys.platform.
|
||||||
return 'x86_64-pc-windows-msvc'
|
return 'x86_64-pc-windows-msvc'
|
||||||
elif kernel == 'AIX':
|
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'
|
return 'powerpc64-ibm-aix'
|
||||||
else:
|
else:
|
||||||
err = "unknown OS type: {}".format(kernel)
|
err = "unknown OS type: {}".format(kernel)
|
||||||
|
Loading…
Reference in New Issue
Block a user