Skip to content

Commit f8711bd

Browse files
committed
Disable Temporal
1 parent 0377ddd commit f8711bd

1 file changed

Lines changed: 17 additions & 1 deletion

File tree

build.sh

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,23 @@ if echo " $need_no_error_versions " | grep -q " $version "; then
6363
fi
6464
export CC_host="gcc"
6565
export CXX_host="g++"
66-
./configure --dest-cpu=arm64 --dest-os=openharmony --cross-compiling --prefix=$workdir/node-${version}-openharmony-arm64
66+
67+
CONFIGURE_ARGS="--dest-cpu=arm64 \
68+
--dest-os=openharmony \
69+
--cross-compiling \
70+
--prefix=$workdir/node-${version}-openharmony-arm64"
71+
72+
# Node.js's build system enables Temporal by default when a Rust environment
73+
# is available on the build machine.
74+
# For details, see this PR: https://github.com/nodejs/node/pull/61806.
75+
# However, enabling Temporal causes build failures during cross-compilation for OHOS.
76+
# To ensure this build script works correctly on machines with Rust environments
77+
# (such as GitHub Actions runners), Temporal is explicitly disabled here.
78+
if ./configure --help 2>&1 | grep -q -- "--v8-disable-temporal-support"; then
79+
CONFIGURE_ARGS="$CONFIGURE_ARGS --v8-disable-temporal-support"
80+
fi
81+
82+
./configure $CONFIGURE_ARGS
6783
make -j$(nproc)
6884
make install
6985
cd ..

0 commit comments

Comments
 (0)