summaryrefslogtreecommitdiff
path: root/configure.py
diff options
context:
space:
mode:
authorDaoming Qiu <daoming.qiu@intel.com>2022-01-12 12:08:16 +0800
committerDanielle Adams <adamzdanielle@gmail.com>2022-04-20 20:34:18 -0400
commit9677da4b464c1e304b60f327ef92a1f8b7845e66 (patch)
tree0c68c2ed9435b75013f2a0e069e6feece507697f /configure.py
parentdcc58314b98cc5bc232c37879ade732ad9bea88a (diff)
downloadnode-new-9677da4b464c1e304b60f327ef92a1f8b7845e66.tar.gz
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 47137d8912..1ba6a1e586 100755
--- a/configure.py
+++ b/configure.py
@@ -779,6 +779,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',
@@ -1436,7 +1443,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']