Skip to content

Commit e097980

Browse files
Gabriel Schulhoftargos
authored andcommitted
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. Backport-PR-URL: #32092 Refs: #31063 (comment) PR-URL: #31103 Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Denys Otrishko <[email protected]>
1 parent 1e95bb8 commit e097980

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

configure.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1103,6 +1103,13 @@ def configure_node(o):
11031103
else:
11041104
o['variables']['node_use_dtrace'] = 'false'
11051105

1106+
if options.node_use_large_pages or options.node_use_large_pages_script_lld:
1107+
warn('''The `--use-largepages` and `--use-largepages-script-lld` options
1108+
have no effect during build time. Support for mapping to large pages is
1109+
now a runtime option of Node.js. Run `node --use-largepages` or add
1110+
`--use-largepages` to the `NODE_OPTIONS` environment variable once
1111+
Node.js is built to enable mapping to large pages.''')
1112+
11061113
if options.no_ifaddrs:
11071114
o['defines'] += ['SUNOS_NO_IFADDRS']
11081115

0 commit comments

Comments
 (0)