summaryrefslogtreecommitdiff
path: root/node.gyp
diff options
context:
space:
mode:
Diffstat (limited to 'node.gyp')
-rw-r--r--node.gyp9
1 files changed, 9 insertions, 0 deletions
diff --git a/node.gyp b/node.gyp
index c4dc98d700..c2823cacb4 100644
--- a/node.gyp
+++ b/node.gyp
@@ -578,6 +578,15 @@
'src/tls_wrap.h'
],
}],
+ [ 'node_use_large_pages=="true" and OS=="linux"', {
+ 'defines': [ 'NODE_ENABLE_LARGE_CODE_PAGES=1' ],
+ # The current implementation of Large Pages is under Linux.
+ # Other implementations are possible but not currently supported.
+ 'sources': [
+ 'src/large_pages/node_large_page.cc',
+ 'src/large_pages/node_large_page.h'
+ ],
+ }],
[ 'use_openssl_def==1', {
# TODO(bnoordhuis) Make all platforms export the same list of symbols.
# Teach mkssldef.py to generate linker maps that UNIX linkers understand.