Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaoming Qiu <daoming.qiu@intel.com>2022-01-12 07:08:16 +0300
committergengjiawen <technicalcute@gmail.com>2022-01-19 12:46:13 +0300
commit26398575dc5b5155e7d31e961aaf5f189d584e08 (patch)
tree13982fd96b03c45a07ad7f5a5e7ac1d2456485fb /configure.py
parentdbc6e39ca7306b0998beb683193483bf9c898100 (diff)
build: add --v8-enable-hugepage flag
PR-URL: https://github.com/nodejs/node/pull/41487 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
Diffstat (limited to 'configure.py')
-rwxr-xr-xconfigure.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/configure.py b/configure.py
index 44929db5f1a..1bd24a4a8e3 100755
--- a/configure.py
+++ b/configure.py
@@ -776,6 +776,13 @@ parser.add_argument('--v8-enable-object-print',
default=True,
help='compile V8 with auxiliar functions for native debuggers')
+parser.add_argument('--v8-enable-hugepage',
+ action='store_true',
+ dest='v8_enable_hugepage',
+ default=None,
+ help='Enable V8 transparent hugepage support. This feature is only '+
+ 'available on Linux platform.')
+
parser.add_argument('--node-builtin-modules-path',
action='store',
dest='node_builtin_modules_path',
@@ -1434,7 +1441,9 @@ def configure_v8(o):
raise Exception('--enable-d8 is incompatible with --without-bundled-v8.')
if options.static_zoslib_gyp:
o['variables']['static_zoslib_gyp'] = options.static_zoslib_gyp
-
+ 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
def configure_openssl(o):
variables = o['variables']