We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 63b6084 commit 8381132Copy full SHA for 8381132
configure.py
@@ -1066,6 +1066,7 @@ def host_arch_cc():
1066
'__PPC__' : 'ppc64',
1067
'__x86_64__' : 'x64',
1068
'__s390x__' : 's390x',
1069
+ '__riscv' : 'riscv',
1070
}
1071
1072
rtn = 'ia32' # default
@@ -1078,6 +1079,12 @@ def host_arch_cc():
1078
1079
if rtn == 'mipsel' and '_LP64' in k:
1080
rtn = 'mips64el'
1081
1082
+ if rtn == 'riscv':
1083
+ if k['__riscv_xlen'] == '64':
1084
+ rtn = 'riscv64'
1085
+ else:
1086
+ rtn = 'riscv32'
1087
+
1088
return rtn
1089
1090
0 commit comments