Skip to content

Commit be5ba7c

Browse files
wojiushixiaobairuyadorno
authored andcommitted
build: set DESTCPU correctly for 'make binary' on loongarch64
Signed-off-by: 吴小白 <[email protected]> PR-URL: #56271 Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Juan José Arboleda <[email protected]>
1 parent 38cf37e commit be5ba7c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Makefile

+8
Original file line numberDiff line numberDiff line change
@@ -934,6 +934,9 @@ else
934934
ifeq ($(findstring riscv64,$(UNAME_M)),riscv64)
935935
DESTCPU ?= riscv64
936936
else
937+
ifeq ($(findstring loongarch64,$(UNAME_M)),loongarch64)
938+
DESTCPU ?= loong64
939+
else
937940
DESTCPU ?= x86
938941
endif
939942
endif
@@ -947,6 +950,7 @@ endif
947950
endif
948951
endif
949952
endif
953+
endif
950954
ifeq ($(DESTCPU),x64)
951955
ARCH=x64
952956
else
@@ -971,6 +975,9 @@ else
971975
ifeq ($(DESTCPU),riscv64)
972976
ARCH=riscv64
973977
else
978+
ifeq ($(DESTCPU),loong64)
979+
ARCH=loong64
980+
else
974981
ARCH=x86
975982
endif
976983
endif
@@ -980,6 +987,7 @@ endif
980987
endif
981988
endif
982989
endif
990+
endif
983991

984992
# node and v8 use different arch names (e.g. node 'x86' vs v8 'ia32').
985993
# pass the proper v8 arch name to $V8_ARCH based on user-specified $DESTCPU.

0 commit comments

Comments
 (0)