about summary refs log tree commit diff
path: root/src/bootstrap
diff options
context:
space:
mode:
authorLéo Lanteri Thauvin <leseulartichaut@gmail.com>2021-08-25 15:48:49 +0200
committerGitHub <noreply@github.com>2021-08-25 15:48:49 +0200
commit2512fb0a0b3e9781f70a5cc96705ec4d9f650992 (patch)
tree902a453a866765a39c85a7bf825d92dca53cfe7b /src/bootstrap
parent214d8e3cd46b4186efd9403296e1be38f5c9fa49 (diff)
parent4130a323b6aa1df5466d3b0d13c0e51039b6827d (diff)
downloadrust-2512fb0a0b3e9781f70a5cc96705ec4d9f650992.tar.gz
rust-2512fb0a0b3e9781f70a5cc96705ec4d9f650992.zip
Rollup merge of #88157 - Icenowy:bootstrap-riscv64, r=Mark-Simulacrum
bootstrap.py: recognize riscv64 when auto-detect

The architecture auto-detect table has no entry for riscv64 (which rustc
uses riscv64gc for the first part of triplet, assuming it's a generic
Linux distro).

Add it to the table to allow riscv64 systems to bootstrap Rust.

Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
Diffstat (limited to 'src/bootstrap')
-rw-r--r--src/bootstrap/bootstrap.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bootstrap/bootstrap.py b/src/bootstrap/bootstrap.py
index 3faf38c66ec..e34768bc2c9 100644
--- a/src/bootstrap/bootstrap.py
+++ b/src/bootstrap/bootstrap.py
@@ -301,6 +301,7 @@ def default_build_triple(verbose):
         'ppc': 'powerpc',
         'ppc64': 'powerpc64',
         'ppc64le': 'powerpc64le',
+        'riscv64': 'riscv64gc',
         's390x': 's390x',
         'x64': 'x86_64',
         'x86': 'i686',