aboutsummaryrefslogtreecommitdiff
path: root/configure.py
diff options
context:
space:
mode:
authorMaciej Kacper Jagiełło <maciej@jagiello.it>2020-05-24 14:07:34 +0200
committerRuben Bridgewater <ruben@bridgewater.de>2020-05-30 04:26:57 +0200
commit01c4455de7160999c236f287f0860aa2fb7ec284 (patch)
treec812a9debf76f8351f2a24505582f199473c525e /configure.py
parent4a8f6b6331ea8e9291ee3c6a03b6f2fbfa8d1343 (diff)
downloadios-node-v8-01c4455de7160999c236f287f0860aa2fb7ec284.tar.gz
ios-node-v8-01c4455de7160999c236f287f0860aa2fb7ec284.tar.bz2
ios-node-v8-01c4455de7160999c236f287f0860aa2fb7ec284.zip
build: add --v8-lite-mode flag
PR-URL: https://github.com/nodejs/node/pull/33541 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'configure.py')
-rwxr-xr-xconfigure.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/configure.py b/configure.py
index 517da8cc23..285dfb2250 100755
--- a/configure.py
+++ b/configure.py
@@ -646,6 +646,14 @@ parser.add_option('--v8-with-dchecks',
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