node/deps/crates
Richard Lau 66054cc90e
build: add rust target for macOS cross compiles
When we build the macOS pkg, we build Node.js twice (on arm64):
- Once for arm64 (native)
- Once for x64, using a combination of Rosetta 2 and compiler flags

before combining both into a universal binary.

For the x64 case, pass target flag to `rustc` so that the binary is
built for the correct target architecture.

Signed-off-by: Richard Lau <richard.lau@ibm.com>
PR-URL: https://github.com/nodejs/node/pull/63015
Reviewed-By: Stewart X Addison <sxa@redhat.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
2026-04-30 15:23:41 +00:00
..
.cargo
patches/resb deps: patch resb crate 2026-03-09 21:38:25 +00:00
src
vendor deps: patch resb crate 2026-03-09 21:38:25 +00:00
.gitignore
Cargo.lock deps: disable rust icu compiled_data features 2026-03-18 19:28:59 +00:00
Cargo.toml deps: disable rust icu compiled_data features 2026-03-18 19:28:59 +00:00
cargo_build.py build,win: fix Temporal build 2026-04-13 18:08:18 +00:00
crates.gyp build: add rust target for macOS cross compiles 2026-04-30 15:23:41 +00:00