Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRefael Ackermann <refack@gmail.com>2019-04-07 22:02:04 +0300
committerRefael Ackermann <refack@gmail.com>2019-04-17 01:25:04 +0300
commit14df42fd008ef8e95d60d0d70084943d180bab91 (patch)
treeb536d1a90d19190599970fd2659345248885d35f /Makefile
parent5ac0308af90c2ab9842682d06a720cfab11eb661 (diff)
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 6cdd65095dd..d4e805c1d54 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 \