summaryrefslogtreecommitdiff
path: root/node.gyp
diff options
context:
space:
mode:
authorGabriel Schulhof <gabriel.schulhof@intel.com>2020-02-21 08:26:29 -0800
committerGabriel Schulhof <gabriel.schulhof@intel.com>2020-02-24 13:59:06 -0800
commit0dff851336ea2a3801667e5390d5821db746baae (patch)
treed93bf6974d1dbdf3a50d227c975a8729f0ded12e /node.gyp
parent9a1719b541b53eae844d801a74a8b6328ad1c9fd (diff)
downloadnode-new-0dff851336ea2a3801667e5390d5821db746baae.tar.gz
src: include large pages source unconditionally
Restrict the usage of the C preprocessor directive enabling large pages support to the large pages implementation. This cleans up the code in src/node.cc. PR-URL: https://github.com/nodejs/node/pull/31904 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: David Carlier <devnexen@gmail.com> Reviewed-By: Denys Otrishko <shishugi@gmail.com>
Diffstat (limited to 'node.gyp')
-rw-r--r--node.gyp6
1 files changed, 2 insertions, 4 deletions
diff --git a/node.gyp b/node.gyp
index ab3953b9bd..1e928262ac 100644
--- a/node.gyp
+++ b/node.gyp
@@ -620,6 +620,8 @@
'src/histogram.h',
'src/histogram-inl.h',
'src/js_stream.h',
+ 'src/large_pages/node_large_page.cc',
+ 'src/large_pages/node_large_page.h'
'src/memory_tracker.h',
'src/memory_tracker-inl.h',
'src/module_wrap.h',
@@ -851,10 +853,6 @@
'target_arch=="x64" and '
'node_target_type=="executable"', {
'defines': [ 'NODE_ENABLE_LARGE_CODE_PAGES=1' ],
- '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.