summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJoyee Cheung <joyeec9h3@gmail.com>2019-04-04 06:29:02 +0800
committerRefael Ackermann <refack@gmail.com>2019-04-16 18:23:32 -0400
commit4fd71935795fa7c284f5ed621551b65a28b8271c (patch)
tree63a90841b3ac80aab7c28c64d0b6dc46e2f19c82 /Makefile
parent1c2616971417bee811ea00da436c87a489f9b1ed (diff)
downloadandroid-node-v8-4fd71935795fa7c284f5ed621551b65a28b8271c.tar.gz
android-node-v8-4fd71935795fa7c284f5ed621551b65a28b8271c.tar.bz2
android-node-v8-4fd71935795fa7c284f5ed621551b65a28b8271c.zip
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--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 346f355ea7..6cdd65095d 100644
--- a/Makefile
+++ b/Makefile
@@ -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,