Skip to content

Commit 1f7a655

Browse files
ciciancodebytere
authored andcommitted
build: add --v8-lite-mode flag
PR-URL: #33541 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Juan José Arboleda <[email protected]> Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent e7c3890 commit 1f7a655

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

configure.py

+9
Original file line numberDiff line numberDiff line change
@@ -646,6 +646,14 @@
646646
default=False,
647647
help='compile V8 with debug checks and runtime debugging features enabled')
648648

649+
parser.add_option('--v8-lite-mode',
650+
action='store_true',
651+
dest='v8_lite_mode',
652+
default=False,
653+
help='compile V8 in lite mode for constrained environments (lowers V8 '+
654+
'memory footprint, but also implies no just-in-time compilation ' +
655+
'support, thus much slower execution)')
656+
649657
parser.add_option('--node-builtin-modules-path',
650658
action='store',
651659
dest='node_builtin_modules_path',
@@ -1246,6 +1254,7 @@ def configure_library(lib, output, pkgname=None):
12461254

12471255

12481256
def configure_v8(o):
1257+
o['variables']['v8_enable_lite_mode'] = 1 if options.v8_lite_mode else 0
12491258
o['variables']['v8_enable_gdbjit'] = 1 if options.gdb else 0
12501259
o['variables']['v8_no_strict_aliasing'] = 1 # Work around compiler bugs.
12511260
o['variables']['v8_optimized_debug'] = 0 if options.v8_non_optimized_debug else 1

0 commit comments

Comments
 (0)