diff options
author | daomingq <daoming.qiu@intel.com> | 2022-04-12 16:46:04 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-12 16:46:04 +0300 |
commit | aa528738871ba9ae83fc5dc73754c5aa975777cb (patch) | |
tree | b8ab2caaf7aaa4fd68f32665fbdc9cd76cf5ef45 /configure.py | |
parent | db7fa9f4b797fc8e4a642d57136e7a6e22d6f9c2 (diff) |
build: add configure option --v8-enable-short-builtin-calls
Add configure option --v8-enable-short-builtin-calls
and enable it by default on x86_64 platform.
PR-URL: https://github.com/nodejs/node/pull/42109
Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Richard Lau <rlau@redhat.com>
Diffstat (limited to 'configure.py')
-rwxr-xr-x | configure.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/configure.py b/configure.py index 6519cf3b962..24cc7d91cd5 100755 --- a/configure.py +++ b/configure.py @@ -782,6 +782,13 @@ parser.add_argument('--v8-enable-hugepage', help='Enable V8 transparent hugepage support. This feature is only '+ 'available on Linux platform.') +parser.add_argument('--v8-enable-short-builtin-calls', + action='store_true', + dest='v8_enable_short_builtin_calls', + default=None, + help='Enable V8 short builtin calls support. This feature is enabled '+ + 'on x86_64 platform by default.') + parser.add_argument('--node-builtin-modules-path', action='store', dest='node_builtin_modules_path', @@ -1464,6 +1471,8 @@ def configure_v8(o): if flavor != 'linux' and options.v8_enable_hugepage: raise Exception('--v8-enable-hugepage is supported only on linux.') 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 def configure_openssl(o): variables = o['variables'] |