summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRefael Ackermann <refack@gmail.com>2019-04-07 15:02:04 -0400
committerRefael Ackermann <refack@gmail.com>2019-04-16 18:25:04 -0400
commit14df42fd008ef8e95d60d0d70084943d180bab91 (patch)
treeb536d1a90d19190599970fd2659345248885d35f /Makefile
parent5ac0308af90c2ab9842682d06a720cfab11eb661 (diff)
downloadandroid-node-v8-14df42fd008ef8e95d60d0d70084943d180bab91.tar.gz
android-node-v8-14df42fd008ef8e95d60d0d70084943d180bab91.tar.bz2
android-node-v8-14df42fd008ef8e95d60d0d70084943d180bab91.zip
build: run `mkcodecache` as an action
* fix test-code-cache (for the common cases) * deprecate `configure --code-cache-path` PR-URL: https://github.com/nodejs/node/pull/27161 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 3 insertions, 11 deletions
diff --git a/Makefile b/Makefile
index 6cdd65095d..d4e805c1d5 100644
--- a/Makefile
+++ b/Makefile
@@ -103,25 +103,17 @@ $(NODE_G_EXE): config.gypi out/Makefile
$(MAKE) -C out BUILDTYPE=Debug V=$(V)
if [ ! -r $@ -o ! -L $@ ]; then ln -fs out/Debug/$(NODE_EXE) $@; fi
-CODE_CACHE_DIR ?= out/$(BUILDTYPE)/obj/gen
-CODE_CACHE_FILE ?= $(CODE_CACHE_DIR)/node_code_cache.cc
-
ifeq ($(BUILDTYPE),Debug)
CONFIG_FLAGS += --debug
endif
+
.PHONY: with-code-cache
with-code-cache:
- @echo $(CONFIG_FLAGS)
- $(PYTHON) ./configure $(CONFIG_FLAGS)
- $(MAKE)
- mkdir -p $(CODE_CACHE_DIR)
- out/$(BUILDTYPE)/mkcodecache $(CODE_CACHE_FILE)
- $(PYTHON) ./configure --code-cache-path $(CODE_CACHE_FILE) $(CONFIG_FLAGS)
- $(MAKE)
+ echo "'with-code-cache' target is a noop"
.PHONY: test-code-cache
test-code-cache: with-code-cache
- $(PYTHON) tools/test.py $(PARALLEL_ARGS) --mode=$(BUILDTYPE_LOWER) code-cache
+ echo "'test-code-cache' target is a noop"
out/Makefile: config.gypi common.gypi node.gyp \
deps/uv/uv.gyp deps/http_parser/http_parser.gyp deps/zlib/zlib.gyp \