Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit be5ba7c

Browse filesBrowse files
wojiushixiaobairuyadorno
authored andcommitted
build: set DESTCPU correctly for 'make binary' on loongarch64
Signed-off-by: 吴小白 <296015668@qq.com> PR-URL: #56271 Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
1 parent 38cf37e commit be5ba7c
Copy full SHA for be5ba7c

File tree

Expand file treeCollapse file tree

1 file changed

+8
-0
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+8
-0
lines changed
Open diff view settings
Collapse file

‎Makefile‎

Copy file name to clipboardExpand all lines: Makefile
+8Lines changed: 8 additions & 0 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.