mirror of
https://github.com/nodejs/node.git
synced 2025-12-28 07:50:41 +00:00
build: set DESTCPU correctly for 'make binary' on loongarch64
Some checks are pending
Coverage Linux (without intl) / coverage-linux-without-intl (push) Waiting to run
Coverage Linux / coverage-linux (push) Waiting to run
Test and upload documentation to artifacts / build-docs (push) Waiting to run
Linters / lint-addon-docs (push) Waiting to run
Linters / lint-cpp (push) Waiting to run
Linters / format-cpp (push) Waiting to run
Linters / lint-js-and-md (push) Waiting to run
Linters / lint-py (push) Waiting to run
Linters / lint-yaml (push) Waiting to run
Linters / lint-sh (push) Waiting to run
Linters / lint-codeowners (push) Waiting to run
Linters / lint-pr-url (push) Waiting to run
Linters / lint-readme (push) Waiting to run
Notify on Push / Notify on Force Push on `main` (push) Waiting to run
Notify on Push / Notify on Push on `main` that lacks metadata (push) Waiting to run
Scorecard supply-chain security / Scorecard analysis (push) Waiting to run
Some checks are pending
Coverage Linux (without intl) / coverage-linux-without-intl (push) Waiting to run
Coverage Linux / coverage-linux (push) Waiting to run
Test and upload documentation to artifacts / build-docs (push) Waiting to run
Linters / lint-addon-docs (push) Waiting to run
Linters / lint-cpp (push) Waiting to run
Linters / format-cpp (push) Waiting to run
Linters / lint-js-and-md (push) Waiting to run
Linters / lint-py (push) Waiting to run
Linters / lint-yaml (push) Waiting to run
Linters / lint-sh (push) Waiting to run
Linters / lint-codeowners (push) Waiting to run
Linters / lint-pr-url (push) Waiting to run
Linters / lint-readme (push) Waiting to run
Notify on Push / Notify on Force Push on `main` (push) Waiting to run
Notify on Push / Notify on Push on `main` that lacks metadata (push) Waiting to run
Scorecard supply-chain security / Scorecard analysis (push) Waiting to run
Signed-off-by: 吴小白 <296015668@qq.com> PR-URL: https://github.com/nodejs/node/pull/56271 Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
This commit is contained in:
parent
8253290d60
commit
0d005119ed
8
Makefile
8
Makefile
@ -934,6 +934,9 @@ else
|
||||
ifeq ($(findstring riscv64,$(UNAME_M)),riscv64)
|
||||
DESTCPU ?= riscv64
|
||||
else
|
||||
ifeq ($(findstring loongarch64,$(UNAME_M)),loongarch64)
|
||||
DESTCPU ?= loong64
|
||||
else
|
||||
DESTCPU ?= x86
|
||||
endif
|
||||
endif
|
||||
@ -947,6 +950,7 @@ endif
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
ifeq ($(DESTCPU),x64)
|
||||
ARCH=x64
|
||||
else
|
||||
@ -971,6 +975,9 @@ else
|
||||
ifeq ($(DESTCPU),riscv64)
|
||||
ARCH=riscv64
|
||||
else
|
||||
ifeq ($(DESTCPU),loong64)
|
||||
ARCH=loong64
|
||||
else
|
||||
ARCH=x86
|
||||
endif
|
||||
endif
|
||||
@ -980,6 +987,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.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user