Skip to content

Commit

Permalink
build: add riscv into host_arch_cc
Browse files Browse the repository at this point in the history
PR-URL: #39004
Reviewed-By: Richard Lau <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Michael Dawson <[email protected]>
  • Loading branch information
luyahan authored and targos committed Jul 11, 2021
1 parent 63b6084 commit 8381132
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions configure.py
Original file line number Diff line number Diff line change
Expand Up @@ -1066,6 +1066,7 @@ def host_arch_cc():
'__PPC__' : 'ppc64',
'__x86_64__' : 'x64',
'__s390x__' : 's390x',
'__riscv' : 'riscv',
}

rtn = 'ia32' # default
Expand All @@ -1078,6 +1079,12 @@ def host_arch_cc():
if rtn == 'mipsel' and '_LP64' in k:
rtn = 'mips64el'

if rtn == 'riscv':
if k['__riscv_xlen'] == '64':
rtn = 'riscv64'
else:
rtn = 'riscv32'

return rtn


Expand Down

0 comments on commit 8381132

Please sign in to comment.