From 79cb3ea1f8fb2ca2b1d4cbd719d5e6c61c499cff Mon Sep 17 00:00:00 2001 From: Vincent Breitmoser Date: Wed, 22 Oct 2025 19:32:43 +0200 Subject: [PATCH] nodejs-mobile: patch to fix arm build This is a known issue with the gcc arm build, see https://github.com/nodejs/node/issues/58458 --- a/deps/v8/src/compiler/turboshaft/int64-lowering-reducer.h +++ b/deps/v8/src/compiler/turboshaft/int64-lowering-reducer.h @@ -637,7 +637,9 @@ result = __ Word32CountLeadingZeros(high); } - return __ Tuple(result, __ Word32Constant(0)); + // patched for arm build. see https://github.com/nodejs/node/issues/58458 + V result_ = result; + return __ Tuple(result_, __ Word32Constant(0)); } V LowerCtz(V input) { @@ -650,7 +652,9 @@ result = __ Word32CountTrailingZeros(low); } - return __ Tuple(result, __ Word32Constant(0)); + // patched for arm build. see https://github.com/nodejs/node/issues/58458 + V result_ = result; + return __ Tuple(result_, __ Word32Constant(0)); } V LowerPopCount(V input) {