Skip to content

Commit

Permalink
add patch to fix arm64 build
Browse files Browse the repository at this point in the history
  • Loading branch information
hgy59 committed Jan 2, 2022
1 parent e6bed70 commit b842f59
Showing 1 changed file with 17 additions and 0 deletions.
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

0 comments on commit b842f59

Please sign in to comment.