mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 13:09:21 +01:00
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:
parent
e542686742
commit
57f23b4050
3
node.gni
3
node.gni
@ -59,6 +59,9 @@ declare_args() {
|
|||||||
# 1. cross-os compilation is not supported.
|
# 1. cross-os compilation is not supported.
|
||||||
# 2. node_mksnapshot crashes when cross-compiling for x64 from arm64.
|
# 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")
|
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,
|
assert(!node_enable_inspector || node_use_openssl,
|
||||||
|
@ -61,6 +61,7 @@ def translate_config(out_dir, config, v8_config):
|
|||||||
eval(config['node_builtin_shareable_builtins']),
|
eval(config['node_builtin_shareable_builtins']),
|
||||||
'node_module_version': int(config['node_module_version']),
|
'node_module_version': int(config['node_module_version']),
|
||||||
'node_use_openssl': config['node_use_openssl'],
|
'node_use_openssl': config['node_use_openssl'],
|
||||||
|
'node_use_amaro': config['node_use_amaro'],
|
||||||
'node_use_node_code_cache': config['node_use_node_code_cache'],
|
'node_use_node_code_cache': config['node_use_node_code_cache'],
|
||||||
'node_use_node_snapshot': config['node_use_node_snapshot'],
|
'node_use_node_snapshot': config['node_use_node_snapshot'],
|
||||||
'v8_enable_inspector': # this is actually a node misnomer
|
'v8_enable_inspector': # this is actually a node misnomer
|
||||||
|
@ -22,6 +22,11 @@ template("node_gn_build") {
|
|||||||
} else {
|
} else {
|
||||||
defines += [ "HAVE_OPENSSL=0" ]
|
defines += [ "HAVE_OPENSSL=0" ]
|
||||||
}
|
}
|
||||||
|
if (node_use_amaro) {
|
||||||
|
defines += [ "HAVE_AMARO=1" ]
|
||||||
|
} else {
|
||||||
|
defines += [ "HAVE_AMARO=0" ]
|
||||||
|
}
|
||||||
if (node_use_v8_platform) {
|
if (node_use_v8_platform) {
|
||||||
defines += [ "NODE_USE_V8_PLATFORM=1" ]
|
defines += [ "NODE_USE_V8_PLATFORM=1" ]
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user