这是indexloc提供的服务,不要输入任何密码
Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions packages/nodejs/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ TERMUX_PKG_HOMEPAGE=https://nodejs.org/
TERMUX_PKG_DESCRIPTION="Open Source, cross-platform JavaScript runtime environment"
TERMUX_PKG_LICENSE="MIT"
TERMUX_PKG_MAINTAINER="Yaksh Bariya <thunder-coding@termux.dev>"
TERMUX_PKG_VERSION=24.9.0
TERMUX_PKG_SRCURL=https://nodejs.org/dist/v${TERMUX_PKG_VERSION}/node-v${TERMUX_PKG_VERSION}.tar.xz
TERMUX_PKG_SHA256=f17bc4cb01f59098c34a288c1bb109a778867c14eeb0ebbd608d0617b1193bbf
TERMUX_PKG_VERSION=25.0.0~rc
TERMUX_PKG_SRCURL=git+https://github.com/nodejs/node.git
TERMUX_PKG_GIT_BRANCH=v25.0.0-proposal
# thunder-coding: don't try to autoupdate nodejs, that thing takes 2 whole hours to build for a single arch, and requires a lot of patch updates everytime. Also I run tests everytime I update it to ensure least bugs
TERMUX_PKG_AUTO_UPDATE=false
# Note that we do not use a shared libuv to avoid an issue with the Android
Expand Down Expand Up @@ -71,8 +71,8 @@ termux_step_host_build() {
# 'bucket': 'chromium-browser-clang',
# 'objects': [
# {
# 'object_name': 'Linux_x64/clang-llvmorg-21-init-5118-g52cd27e6-5.tar.xz',
# 'sha256sum': '790fcc5b04e96882e8227ba7994161ab945c0e096057fc165a0f71e32a7cb061',
# 'object_name': 'Linux_x64/clang-llvmorg-21-init-9266-g09006611-1.tar.xz',
# 'sha256sum': '2cccd3a5b04461f17a2e78d2f8bd18b448443a9dd4d6dfac50e8e84b4d5176f1',
# 'size_bytes': 54517328,
# 'generation': 1742541959624765,
# 'condition': 'host_os == "linux"',
Expand All @@ -87,8 +87,8 @@ termux_step_host_build() {
# llvm-project directory.
#
# Also the sha256sum is the hash of the tarball, which we can directly use
local LLVM_TAR="clang-llvmorg-21-init-5118-g52cd27e6-5.tar.xz"
local LLVM_TAR_HASH=790fcc5b04e96882e8227ba7994161ab945c0e096057fc165a0f71e32a7cb061
local LLVM_TAR="clang-llvmorg-21-init-9266-g09006611-1.tar.xz"
local LLVM_TAR_HASH=2cccd3a5b04461f17a2e78d2f8bd18b448443a9dd4d6dfac50e8e84b4d5176f1
cd $TERMUX_PKG_HOSTBUILD_DIR
mkdir llvm-project-build
termux_download \
Expand Down
12 changes: 8 additions & 4 deletions packages/nodejs/deps-v8-src-trap-handler-trap-handler.h.patch
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
--- ./deps/v8/src/trap-handler/trap-handler.h.orig 2025-05-08 13:56:19.000000000 +0530
+++ ./deps/v8/src/trap-handler/trap-handler.h 2025-05-09 19:48:23.129472068 +0530
@@ -15,45 +15,7 @@
--- ./deps/v8/src/trap-handler/trap-handler.h.orig 2025-10-06 04:33:30.681637509 +0530
+++ ./deps/v8/src/trap-handler/trap-handler.h 2025-10-06 04:33:35.761027106 +0530
@@ -15,49 +15,7 @@

namespace v8::internal::trap_handler {

Expand All @@ -9,10 +9,14 @@
- ((V8_OS_LINUX && !V8_OS_ANDROID) || V8_OS_WIN || V8_OS_DARWIN || \
- V8_OS_FREEBSD)
-#define V8_TRAP_HANDLER_SUPPORTED true
-// Arm64 (non-simulator) on Linux, Windows, MacOS.
-// Arm64 native on Linux, Windows, MacOS.
-#elif V8_TARGET_ARCH_ARM64 && V8_HOST_ARCH_ARM64 && \
- ((V8_OS_LINUX && !V8_OS_ANDROID) || V8_OS_WIN || V8_OS_DARWIN)
-#define V8_TRAP_HANDLER_SUPPORTED true
-// For Linux and Mac, enable the simulator when it's been requested.
-#if USE_SIMULATOR && ((V8_OS_LINUX && !V8_OS_ANDROID) || V8_OS_DARWIN)
-#define V8_TRAP_HANDLER_VIA_SIMULATOR
-#endif
-// Arm64 simulator on x64 on Linux, Mac, or Windows.
-//
-// The simulator case uses some inline assembly code, which cannot be
Expand Down