diff options
author | Gabriel Schulhof <gabriel.schulhof@intel.com> | 2019-12-26 20:04:43 +0300 |
---|---|---|
committer | Ruben Bridgewater <ruben@bridgewater.de> | 2020-01-03 18:22:02 +0300 |
commit | d2ab877b7253804451eb298664cef5349ed5d3e9 (patch) | |
tree | 02d08d5eaba9e7ba3521a9f4569e887faa5f15ae | |
parent | 97ce0a3b478481d66747b9137e942f2c73e7ba5f (diff) |
build: warn upon --use-largepages config option
Emit a warning when the user configures with `--use-largepages` and/or
`--use-largepages-script-lld` informing them that the option is now
available as a Node.js runtime option once it is built.
Refs: https://github.com/nodejs/node/pull/31063#discussion_r361143460
PR-URL: https://github.com/nodejs/node/pull/31103
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Denys Otrishko <shishugi@gmail.com>
-rwxr-xr-x | configure.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/configure.py b/configure.py index a6b4bc219c0..bc6bff224b6 100755 --- a/configure.py +++ b/configure.py @@ -1067,6 +1067,13 @@ def configure_node(o): else: o['variables']['node_use_dtrace'] = 'false' + if options.node_use_large_pages or options.node_use_large_pages_script_lld: + warn('''The `--use-largepages` and `--use-largepages-script-lld` options + have no effect during build time. Support for mapping to large pages is + now a runtime option of Node.js. Run `node --use-largepages` or add + `--use-largepages` to the `NODE_OPTIONS` environment variable once + Node.js is built to enable mapping to large pages.''') + if options.no_ifaddrs: o['defines'] += ['SUNOS_NO_IFADDRS'] |