summaryrefslogtreecommitdiff
path: root/node.gyp
diff options
context:
space:
mode:
Diffstat (limited to 'node.gyp')
-rw-r--r--node.gyp8
1 files changed, 8 insertions, 0 deletions
diff --git a/node.gyp b/node.gyp
index b16c9466fe..f11b022e67 100644
--- a/node.gyp
+++ b/node.gyp
@@ -6,6 +6,7 @@
'node_use_etw%': 'false',
'node_use_perfctr%': 'false',
'node_no_browser_globals%': 'false',
+ 'node_code_cache_path%': '',
'node_use_v8_platform%': 'true',
'node_use_bundled_v8%': 'true',
'node_shared%': 'false',
@@ -24,6 +25,7 @@
'node_lib_target_name%': 'node_lib',
'node_intermediate_lib_type%': 'static_library',
'library_files': [
+ 'lib/internal/bootstrap/cache.js',
'lib/internal/bootstrap/loaders.js',
'lib/internal/bootstrap/node.js',
'lib/async_hooks.js',
@@ -396,6 +398,7 @@
'src/module_wrap.h',
'src/node.h',
'src/node_buffer.h',
+ 'src/node_code_cache.h',
'src/node_constants.h',
'src/node_contextify.h',
'src/node_debug_options.h',
@@ -459,6 +462,11 @@
'NODE_OPENSSL_SYSTEM_CERT_PATH="<(openssl_system_ca_path)"',
],
'conditions': [
+ [ 'node_code_cache_path!=""', {
+ 'sources': [ '<(node_code_cache_path)' ]
+ }, {
+ 'sources': [ 'src/node_code_cache_stub.cc' ]
+ }],
[ 'node_shared=="true" and node_module_version!="" and OS!="win"', {
'product_extension': '<(shlib_suffix)',
'xcode_settings': {