File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -63,7 +63,23 @@ if echo " $need_no_error_versions " | grep -q " $version "; then
6363fi
6464export CC_host=" gcc"
6565export 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
6783make -j$( nproc)
6884make install
6985cd ..
You can’t perform that action at this time.
0 commit comments