Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLu Yahan <yahan@iscas.ac.cn>2021-06-11 11:09:30 +0300
committerMichaƫl Zasso <targos@protonmail.com>2021-07-11 10:36:58 +0300
commit1d638976d5a167ff1e0f938e3eced06553e1f758 (patch)
tree9e788109e8b64b2fb5ddf82e54b66202a8fcd210 /configure.py
parent60646cade747d4b4a0ebbb8ef98d86eb95fdd379 (diff)
build: add riscv into host_arch_cc
PR-URL: https://github.com/nodejs/node/pull/39004 Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Michael Dawson <midawson@redhat.com>
Diffstat (limited to 'configure.py')
-rwxr-xr-xconfigure.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/configure.py b/configure.py
index 4bc790e2f24..d69c52521d8 100755
--- a/configure.py
+++ b/configure.py
@@ -1066,6 +1066,7 @@ def host_arch_cc():
'__PPC__' : 'ppc64',
'__x86_64__' : 'x64',
'__s390x__' : 's390x',
+ '__riscv' : 'riscv',
}
rtn = 'ia32' # default
@@ -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