diff --git a/configure.py b/configure.py index bc21faef7d09de..81d54a14b7af51 100755 --- a/configure.py +++ b/configure.py @@ -834,6 +834,12 @@ help='Enable V8 short builtin calls support. This feature is enabled '+ 'on x86_64 platform by default.') +parser.add_argument('--v8-enable-snapshot-compression', + action='store_true', + dest='v8_enable_snapshot_compression', + default=None, + help='Enable the built-in snapshot compression in V8.') + parser.add_argument('--node-builtin-modules-path', action='store', dest='node_builtin_modules_path', @@ -1535,6 +1541,8 @@ def configure_v8(o): o['variables']['v8_enable_hugepage'] = 1 if options.v8_enable_hugepage else 0 if options.v8_enable_short_builtin_calls or o['variables']['target_arch'] == 'x64': o['variables']['v8_enable_short_builtin_calls'] = 1 + if options.v8_enable_snapshot_compression: + o['variables']['v8_enable_snapshot_compression'] = 1 if options.v8_enable_object_print and options.v8_disable_object_print: raise Exception( 'Only one of the --v8-enable-object-print or --v8-disable-object-print options ' diff --git a/tools/v8_gypfiles/features.gypi b/tools/v8_gypfiles/features.gypi index 022f89e565f65e..82c95b4d6db5ee 100644 --- a/tools/v8_gypfiles/features.gypi +++ b/tools/v8_gypfiles/features.gypi @@ -211,7 +211,7 @@ 'v8_enable_regexp_interpreter_threaded_dispatch%': 1, # Disable all snapshot compression. - 'v8_enable_snapshot_compression%': 1, + 'v8_enable_snapshot_compression%': 0, # Enable control-flow integrity features, such as pointer authentication # for ARM64.