termux-packages/packages/nodejs/deps-v8-src-trap-handler-trap-handler.h.patch
YAKSH BARIYA 154bd59dae
nodejs: Bump to 16.11.0 (#7710)
Other changes done:

- Removed `no-android-log.patch` since Node.js uses GYP and not GN to
  build itself. This patch must be having no effect at all
- Added patch to force `V8_TRAP_HANDLER_SUPPORTED` to always false which
  fixes builds for x86_64 which started reproducing even on aarch64
- Removed `x86_64` as blacklisted arch
2021-10-09 22:42:57 +01:00

26 lines
1015 B
Diff

--- ./deps/v8/src/trap-handler/trap-handler.h 2021-10-08 19:08:46.000000000 +0530
+++ ./deps/v8/src/trap-handler/trap-handler.h.mod 2021-10-09 19:43:08.715641214 +0530
@@ -17,22 +17,7 @@
namespace internal {
namespace trap_handler {
-// X64 on Linux, Windows, MacOS, FreeBSD.
-#if V8_HOST_ARCH_X64 && V8_TARGET_ARCH_X64 && \
- ((V8_OS_LINUX && !V8_OS_ANDROID) || V8_OS_WIN || V8_OS_MACOSX || \
- V8_OS_FREEBSD)
-#define V8_TRAP_HANDLER_SUPPORTED true
-// Arm64 (non-simulator) on Mac.
-#elif V8_TARGET_ARCH_ARM64 && V8_HOST_ARCH_ARM64 && V8_OS_MACOSX
-#define V8_TRAP_HANDLER_SUPPORTED true
-// Arm64 simulator on x64 on Linux or Mac.
-#elif V8_TARGET_ARCH_ARM64 && V8_HOST_ARCH_X64 && (V8_OS_LINUX || V8_OS_MACOSX)
-#define V8_TRAP_HANDLER_VIA_SIMULATOR
-#define V8_TRAP_HANDLER_SUPPORTED true
-// Everything else is unsupported.
-#else
#define V8_TRAP_HANDLER_SUPPORTED false
-#endif
// Setup for shared library export.
#if defined(BUILDING_V8_SHARED) && defined(V8_OS_WIN)