From ffdb03c2f9a33e831c23b817cca61cd20b4cb34d Mon Sep 17 00:00:00 2001 From: Stewart X Addison Date: Sat, 14 Mar 2026 10:35:00 +0000 Subject: [PATCH 1/2] build: skip dockit on riscv64 Signed-off-by: Stewart X Addison --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Makefile b/Makefile index a0a364d2de4e..5761fab69f49 100644 --- a/Makefile +++ b/Makefile @@ -844,6 +844,11 @@ else ifeq ($(OSTYPE),os400) # TODO(@nodejs/web-infra): IBMi is currently hanging during HTML minification $(apidocs_html) $(apidocs_json) out/doc/api/all.html out/doc/api/all.json: @echo "Skipping $@ (not currently supported by $(OSTYPE) machines)" +else ifeq ($(DESTCPU),riscv64) +# Many riscv64 environments (except qemu) fail on the wasm steps here +# https://github.com/nodejs/build/issues/4099#issuecomment-4038743335 +$(apidocs_html) $(apidocs_json) out/doc/api/all.html out/doc/api/all.json: + @echo "Skipping $@ (not currently supported by $(DESTCPU) machines)" else $(apidocs_html) $(apidocs_json) out/doc/api/all.html out/doc/api/all.json &: $(apidoc_sources) tools/doc/node_modules | out/doc/api @if [ "$(shell $(node_use_openssl_and_icu))" != "true" ]; then \ From c15711fb6000f373e5dab2ee406fab09352950ce Mon Sep 17 00:00:00 2001 From: Stewart X Addison Date: Thu, 27 Aug 2026 20:47:53 +0100 Subject: [PATCH 2/2] build: use ARCHTYPE instead of DESTCPU Signed-off-by: Stewart X Addison --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 5761fab69f49..300a2acc75ac 100644 --- a/Makefile +++ b/Makefile @@ -844,7 +844,7 @@ else ifeq ($(OSTYPE),os400) # TODO(@nodejs/web-infra): IBMi is currently hanging during HTML minification $(apidocs_html) $(apidocs_json) out/doc/api/all.html out/doc/api/all.json: @echo "Skipping $@ (not currently supported by $(OSTYPE) machines)" -else ifeq ($(DESTCPU),riscv64) +else ifeq ($(ARCHTYPE),riscv64) # Many riscv64 environments (except qemu) fail on the wasm steps here # https://github.com/nodejs/build/issues/4099#issuecomment-4038743335 $(apidocs_html) $(apidocs_json) out/doc/api/all.html out/doc/api/all.json: