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:
authorMakoto Kato <m_kato@ga2.so-net.ne.jp>2021-06-16 02:12:42 +0300
committerMichaël Zasso <targos@protonmail.com>2021-07-11 10:04:37 +0300
commit0b27fd0856a0b132c1b1fdc5266ea68cab132747 (patch)
tree88668913c2a63929c4a54a11e9cba84e533978db /Makefile
parentc4096a35d651399f79948395c233747dcacc83aa (diff)
build: allow to build riscv64 using Makefile
PR-URL: https://github.com/nodejs/node/pull/39048 Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Michaël Zasso <targos@protonmail.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index de2691b3414..886011b9879 100644
--- a/Makefile
+++ b/Makefile
@@ -847,6 +847,9 @@ else
ifeq ($(findstring powerpc,$(shell uname -p)),powerpc)
DESTCPU ?= ppc64
else
+ifeq ($(findstring riscv64,$(UNAME_M)),riscv64)
+DESTCPU ?= riscv64
+else
DESTCPU ?= x86
endif
endif
@@ -857,6 +860,7 @@ endif
endif
endif
endif
+endif
ifeq ($(DESTCPU),x64)
ARCH=x64
else
@@ -878,6 +882,9 @@ else
ifeq ($(DESTCPU),s390x)
ARCH=s390x
else
+ifeq ($(DESTCPU),riscv64)
+ARCH=riscv64
+else
ARCH=x86
endif
endif
@@ -886,6 +893,7 @@ endif
endif
endif
endif
+endif
# node and v8 use different arch names (e.g. node 'x86' vs v8 'ia32').
# pass the proper v8 arch name to $V8_ARCH based on user-specified $DESTCPU.