diff options
author | Joyee Cheung <joyeec9h3@gmail.com> | 2019-04-04 06:29:02 +0800 |
---|---|---|
committer | Refael Ackermann <refack@gmail.com> | 2019-04-16 18:23:32 -0400 |
commit | 4fd71935795fa7c284f5ed621551b65a28b8271c (patch) | |
tree | 63a90841b3ac80aab7c28c64d0b6dc46e2f19c82 /Makefile | |
parent | 1c2616971417bee811ea00da436c87a489f9b1ed (diff) | |
download | node-new-4fd71935795fa7c284f5ed621551b65a28b8271c.tar.gz |
tools: implement mkcodecache as an executable
This patch implement a mkcodecache executable on top of the
`NativeModuleLoader` singleton.
This makes it possible to build a Node.js binary with embedded
code cache without building itself using the code cache stub -
the cache is now initialized by `NativeModuleEnv` instead which
can be refactored out of the mkcodecache dependencies.
PR-URL: https://github.com/nodejs/node/pull/27161
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -115,7 +115,7 @@ with-code-cache: $(PYTHON) ./configure $(CONFIG_FLAGS) $(MAKE) mkdir -p $(CODE_CACHE_DIR) - out/$(BUILDTYPE)/$(NODE_EXE) --expose-internals tools/generate_code_cache.js $(CODE_CACHE_FILE) + out/$(BUILDTYPE)/mkcodecache $(CODE_CACHE_FILE) $(PYTHON) ./configure --code-cache-path $(CODE_CACHE_FILE) $(CONFIG_FLAGS) $(MAKE) @@ -1232,6 +1232,8 @@ LINT_CPP_FILES = $(filter-out $(LINT_CPP_EXCLUDE), $(wildcard \ test/node-api/*/*.h \ tools/icu/*.cc \ tools/icu/*.h \ + tools/code_cache/*.cc \ + tools/code_cache/*.h \ )) # Code blocks don't have newline at the end, |