Skip to content

Commit 88b76d1

Browse files
author
Gabriel Schulhof
committed
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: nodejs#31063 (comment) PR-URL: nodejs#31103 Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Denys Otrishko <[email protected]>
1 parent 7075e9d commit 88b76d1

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

configure.py

+7
Original file line numberDiff line numberDiff line change
@@ -1024,6 +1024,13 @@ def configure_node(o):
10241024
else:
10251025
o['variables']['node_use_dtrace'] = 'false'
10261026

1027+
if options.node_use_large_pages:
1028+
warn('''The `--use-largepages` option has no effect during build time.
1029+
Support for mapping to large pages is now a runtime option of Node.js.
1030+
Run `node --use-largepages` or add `--use-largepages` to the
1031+
`NODE_OPTIONS` environment variable once Node.js is built to enable
1032+
mapping to large pages.''')
1033+
10271034
if options.no_ifaddrs:
10281035
o['defines'] += ['SUNOS_NO_IFADDRS']
10291036

0 commit comments

Comments
 (0)