Skip to content

Commit

Permalink
bootstrap.py: recognize riscv64 when auto-detect
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
Icenowy committed Aug 19, 2021
1 parent a9ab2e5 commit 4130a32
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/bootstrap/bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,7 @@ def default_build_triple(verbose):
'ppc': 'powerpc',
'ppc64': 'powerpc64',
'ppc64le': 'powerpc64le',
'riscv64': 'riscv64gc',
's390x': 's390x',
'x64': 'x86_64',
'x86': 'i686',
Expand Down

0 comments on commit 4130a32

Please sign in to comment.