build: implement node_use_amaro flag in GN build

PR-URL: https://github.com/nodejs/node/pull/55798
Refs: https://github.com/nodejs/node/pull/54136
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
Cheng
2024-11-11 13:33:06 +09:00
committed by GitHub
parent e542686742
commit 57f23b4050
3 changed files with 9 additions and 0 deletions

View File

@@ -59,6 +59,9 @@ declare_args() {
# 1. cross-os compilation is not supported.
# 2. node_mksnapshot crashes when cross-compiling for x64 from arm64.
node_use_node_snapshot = (host_os == target_os) && !(host_cpu == "arm64" && target_cpu == "x64")
# Build with Amaro (TypeScript utils).
node_use_amaro = true
}
assert(!node_enable_inspector || node_use_openssl,