summaryrefslogtreecommitdiff
path: root/configure.py
diff options
context:
space:
mode:
authorMary Marchini <mmarchini@netflix.com>2020-04-13 17:50:55 -0700
committerMary Marchini <mmarchini@netflix.com>2020-08-09 22:48:30 -0700
commitdd0c5228acaf5695f96809e50771ead3167b0f44 (patch)
treee45d4d542f3e3fc6ff3d9fd059605d98cbf83ab8 /configure.py
parent3ddf2c9c996dea6bbf0d24c632ccc85e720a9b1a (diff)
downloadios-node-v8-dd0c5228acaf5695f96809e50771ead3167b0f44.tar.gz
ios-node-v8-dd0c5228acaf5695f96809e50771ead3167b0f44.tar.bz2
ios-node-v8-dd0c5228acaf5695f96809e50771ead3167b0f44.zip
build: add flag to build V8 with OBJECT_PRINT
Add a configure flag to build V8 with `-DOBJECT_PRINT`, which will expose auxiliar functions to inspect heap objects using native debuggers. Fixes: https://github.com/nodejs/node/issues/32402 Signed-off-by: Mary Marchini <mmarchini@netflix.com> PR-URL: https://github.com/nodejs/node/pull/32834 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Ujjwal Sharma <ryzokuken@disroot.org> Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
Diffstat (limited to 'configure.py')
-rwxr-xr-xconfigure.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/configure.py b/configure.py
index 1d3e291708..2327089e12 100755
--- a/configure.py
+++ b/configure.py
@@ -706,6 +706,12 @@ parser.add_option('--v8-lite-mode',
'memory footprint, but also implies no just-in-time compilation ' +
'support, thus much slower execution)')
+parser.add_option('--v8-enable-object-print',
+ action='store_true',
+ dest='v8_enable_object_print',
+ default=False,
+ help='compile V8 with auxiliar functions for native debuggers')
+
parser.add_option('--node-builtin-modules-path',
action='store',
dest='node_builtin_modules_path',
@@ -1321,6 +1327,7 @@ def configure_v8(o):
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
o['variables']['dcheck_always_on'] = 1 if options.v8_with_dchecks else 0
+ o['variables']['v8_enable_object_print'] = 1 if options.v8_enable_object_print else 0
o['variables']['v8_random_seed'] = 0 # Use a random seed for hash tables.
o['variables']['v8_promise_internal_field_count'] = 1 # Add internal field to promises for async hooks.
o['variables']['v8_use_siphash'] = 0 if options.without_siphash else 1