diff --git a/lang-js/nodejs-22/autobuild/patches/0001-UPSTREAM-tools-fix-riscv64-build-failed.patch b/lang-js/nodejs-22/autobuild/patches/0001-UPSTREAM-tools-fix-riscv64-build-failed.patch new file mode 100644 index 00000000000..3cd7caab274 --- /dev/null +++ b/lang-js/nodejs-22/autobuild/patches/0001-UPSTREAM-tools-fix-riscv64-build-failed.patch @@ -0,0 +1,44 @@ +From 1613ecb0010f4869d0a9944fcd34fb78bfdb0361 Mon Sep 17 00:00:00 2001 +From: Lu Yahan +Date: Wed, 8 May 2024 16:34:24 +0800 +Subject: [PATCH] UPSTREAM: tools: fix riscv64 build failed + +Fix build failure on riscv64 since v22. + +Ref: https://github.com/nodejs/node/pull/52888 +Ref: https://github.com/nodejs/node/issues/52678 +--- + tools/v8_gypfiles/v8.gyp | 17 +++++++++++++++++ + 1 file changed, 17 insertions(+) + +diff --git a/tools/v8_gypfiles/v8.gyp b/tools/v8_gypfiles/v8.gyp +index c680132f80..f0d53831f5 100644 +--- a/tools/v8_gypfiles/v8.gyp ++++ b/tools/v8_gypfiles/v8.gyp +@@ -1168,6 +1168,23 @@ + 'sources': [ + '