diff options
author | Gabriel Schulhof <gabriel.schulhof@intel.com> | 2019-12-13 22:59:37 +0300 |
---|---|---|
committer | Gabriel Schulhof <gabriel.schulhof@intel.com> | 2019-12-22 22:49:26 +0300 |
commit | 8952105e576315fcb15cd4c9399e950bc191e854 (patch) | |
tree | 1583553a4d844867aa0e6c07f4b8c139c2c4a1eb /node.gypi | |
parent | 312f3086c21e5c3595909358c54b5e5b9a0d095d (diff) |
src: make --use-largepages a runtime option
Moves the option that instructs Node.js to-remap its static code to
large pages from a configure-time option to a runtime option. This
should make it easy to assess the performance impact of such a change
without having to custom-build.
PR-URL: https://github.com/nodejs/node/pull/30954
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: David Carlier <devnexen@gmail.com>
Reviewed-By: David Carlier <devnexen@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Denys Otrishko <shishugi@gmail.com>
Co-authored-by: David Carlier <devnexen@gmail.com>
Diffstat (limited to 'node.gypi')
-rw-r--r-- | node.gypi | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/node.gypi b/node.gypi index b811829f4f5..0751416c887 100644 --- a/node.gypi +++ b/node.gypi @@ -308,8 +308,7 @@ }], [ 'OS=="linux" and ' 'target_arch=="x64" and ' - 'node_use_large_pages=="true" and ' - 'node_use_large_pages_script_lld=="false"', { + 'llvm_version=="0.0"', { 'ldflags': [ '-Wl,-T', '<!(realpath src/large_pages/ld.implicit.script)', @@ -317,8 +316,7 @@ }], [ 'OS=="linux" and ' 'target_arch=="x64" and ' - 'node_use_large_pages=="true" and ' - 'node_use_large_pages_script_lld=="true"', { + 'llvm_version!="0.0"', { 'ldflags': [ '-Wl,-T', '<!(realpath src/large_pages/ld.implicit.script.lld)', |