-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
17 additions
and
0 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
cross/nodejs_v16/patches/001.disable.v8-trap-handler.for.arm64.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# https://github.com/nodejs/node/issues/36287#issuecomment-939324717 | ||
# disable V8_TRAP_HANDLER for ARM64 | ||
--- deps/v8/src/trap-handler/trap-handler.h.orig 2022-01-01 21:51:12.918863800 +0000 | ||
+++ deps/v8/src/trap-handler/trap-handler.h 2022-01-02 17:22:11.340303717 +0000 | ||
@@ -25,10 +25,9 @@ | ||
// 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. | ||
+// Arm64 simulator on x64 on Linux or Mac. -> patched to disable supported | ||
#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 | ||
+#define V8_TRAP_HANDLER_SUPPORTED false | ||
// Everything else is unsupported. | ||
#else | ||
#define V8_TRAP_HANDLER_SUPPORTED false |