diff options
author | Gabriel Schulhof <gabriel.schulhof@intel.com> | 2020-02-21 08:26:29 -0800 |
---|---|---|
committer | Gabriel Schulhof <gabriel.schulhof@intel.com> | 2020-02-24 13:59:06 -0800 |
commit | 0dff851336ea2a3801667e5390d5821db746baae (patch) | |
tree | d93bf6974d1dbdf3a50d227c975a8729f0ded12e /node.gyp | |
parent | 9a1719b541b53eae844d801a74a8b6328ad1c9fd (diff) | |
download | node-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.gyp | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -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. |