File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,6 @@ declare_args() {
20
20
" deps/cjs-module-lexer/lexer.js" ,
21
21
" deps/cjs-module-lexer/dist/lexer.js" ,
22
22
" deps/undici/undici.js" ,
23
- " deps/amaro/dist/index.js" ,
24
23
]
25
24
}
26
25
@@ -59,6 +58,9 @@ declare_args() {
59
58
# 1. cross-os compilation is not supported.
60
59
# 2. node_mksnapshot crashes when cross-compiling for x64 from arm64.
61
60
node_use_node_snapshot = (host_os == target_os ) && ! (host_cpu == " arm64" && target_cpu == " x64" )
61
+
62
+ # Build with Amaro (TypeScript utils).
63
+ node_use_amaro = true
62
64
}
63
65
64
66
assert (! node_enable_inspector || node_use_openssl ,
Original file line number Diff line number Diff line change @@ -22,6 +22,11 @@ template("node_gn_build") {
22
22
} else {
23
23
defines += [ " HAVE_OPENSSL=0" ]
24
24
}
25
+ if (node_use_amaro ) {
26
+ defines += [ " HAVE_AMARO=1" ]
27
+ } else {
28
+ defines += [ " HAVE_AMARO=0" ]
29
+ }
25
30
if (node_use_v8_platform ) {
26
31
defines += [ " NODE_USE_V8_PLATFORM=1" ]
27
32
} else {
@@ -320,6 +325,9 @@ template("node_gn_build") {
320
325
rebase_path (" lib" , root_build_dir ),
321
326
" js" ],
322
327
" list lines" )
328
+ if (node_use_amaro ) {
329
+ node_deps_files += [ " deps/amaro/dist/index.js" ]
330
+ }
323
331
324
332
inputs = node_library_files +
325
333
node_deps_files +
You can’t perform that action at this time.
0 commit comments