From 3e2974d546762af413edaf5dbb721f513991e663 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Kacper=20Jagie=C5=82=C5=82o?= Date: Sun, 24 May 2020 14:07:34 +0200 Subject: [PATCH] build: add --v8-lite-mode flag MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/33541 Reviewed-By: Anna Henningsen Reviewed-By: Colin Ihrig Reviewed-By: Richard Lau Reviewed-By: Juan José Arboleda Reviewed-By: Ben Noordhuis Reviewed-By: James M Snell --- configure.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/configure.py b/configure.py index 517da8cc232474..285dfb22504dfa 100755 --- a/configure.py +++ b/configure.py @@ -646,6 +646,14 @@ default=False, help='compile V8 with debug checks and runtime debugging features enabled') +parser.add_option('--v8-lite-mode', + action='store_true', + dest='v8_lite_mode', + default=False, + help='compile V8 in lite mode for constrained environments (lowers V8 '+ + 'memory footprint, but also implies no just-in-time compilation ' + + 'support, thus much slower execution)') + parser.add_option('--node-builtin-modules-path', action='store', dest='node_builtin_modules_path', @@ -1246,6 +1254,7 @@ def configure_library(lib, output, pkgname=None): def configure_v8(o): + o['variables']['v8_enable_lite_mode'] = 1 if options.v8_lite_mode else 0 o['variables']['v8_enable_gdbjit'] = 1 if options.gdb else 0 o['variables']['v8_no_strict_aliasing'] = 1 # Work around compiler bugs. o['variables']['v8_optimized_debug'] = 0 if options.v8_non_optimized_debug else 1