[v16.x backport] tools: update V8 gypfiles for 9.6
This is a clean cherry-pick of https://github.com/nodejs/node/commit/6ac1cccf9fd565f92f9e1cc5c7d792d5410a7c54 and https://github.com/nodejs/node/commit/4d2d44f2f553d83920725f6f125d4fd87919e795. With this change, it
is possible to cross-compile from x86_64
to ARM64
on macOS.
Fixes: https://github.com/nodejs/node/issues/40350
cc @targos
Original commit messages:
-
tools: update V8 gypfiles for 9.6
PR-URL: https://github.com/nodejs/node/pull/40488 Reviewed-By: Jiawen Geng technicalcute@gmail.com Reviewed-By: James M Snell jasnell@gmail.com
-
tools: disable trap handler for Windows cross-compiler
handler-outside-simulator.cc
uses inline assembly, which is not supported by MSVC.PR-URL: https://github.com/nodejs/node/pull/40488 Reviewed-By: Jiawen Geng technicalcute@gmail.com Reviewed-By: James M Snell jasnell@gmail.com