Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriel Schulhof <gabriel.schulhof@intel.com>2019-12-13 22:59:37 +0300
committerGabriel Schulhof <gabriel.schulhof@intel.com>2019-12-22 22:49:26 +0300
commit8952105e576315fcb15cd4c9399e950bc191e854 (patch)
tree1583553a4d844867aa0e6c07f4b8c139c2c4a1eb /node.gypi
parent312f3086c21e5c3595909358c54b5e5b9a0d095d (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.gypi6
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)',