1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Add comments to touch libyjit

This commit is contained in:
Nobuyoshi Nakada 2022-09-14 15:23:04 +09:00
parent e1a9d88494
commit 075df960c9
Notes: git 2022-09-14 21:25:03 +09:00

View file

@ -13,6 +13,12 @@ YJIT_SRC_FILES = $(wildcard \
$(top_srcdir)/yjit/src/*/*/*/*.rs \ $(top_srcdir)/yjit/src/*/*/*/*.rs \
) )
# Because of Cargo cache, if the actual binary is not changed from the
# previous build, the mtime is preserved as the cached file.
# This means the target is not updated actually, and it will need to
# rebuild at the next build.
YJIT_LIB_TOUCH = touch $@
# YJIT_SUPPORT=yes when `configure` gets `--enable-yjit` # YJIT_SUPPORT=yes when `configure` gets `--enable-yjit`
ifeq ($(YJIT_SUPPORT),yes) ifeq ($(YJIT_SUPPORT),yes)
$(YJIT_LIBS): $(YJIT_SRC_FILES) $(YJIT_LIBS): $(YJIT_SRC_FILES)
@ -25,7 +31,7 @@ $(YJIT_LIBS): $(YJIT_SRC_FILES)
-C overflow-checks=on \ -C overflow-checks=on \
'--out-dir=$(CARGO_TARGET_DIR)/release/' \ '--out-dir=$(CARGO_TARGET_DIR)/release/' \
$(top_srcdir)/yjit/src/lib.rs $(top_srcdir)/yjit/src/lib.rs
touch $@ $(YJIT_LIB_TOUCH)
else ifeq ($(YJIT_SUPPORT),no) else ifeq ($(YJIT_SUPPORT),no)
$(YJIT_LIBS): $(YJIT_LIBS):
$(ECHO) 'Error: Tried to build YJIT without configuring it first. Check `make showconfig`?' $(ECHO) 'Error: Tried to build YJIT without configuring it first. Check `make showconfig`?'
@ -37,7 +43,7 @@ $(YJIT_LIBS): $(YJIT_SRC_FILES)
CARGO_TARGET_DIR='$(CARGO_TARGET_DIR)' \ CARGO_TARGET_DIR='$(CARGO_TARGET_DIR)' \
CARGO_TERM_PROGRESS_WHEN='never' \ CARGO_TERM_PROGRESS_WHEN='never' \
$(CARGO) $(CARGO_VERBOSE) build $(CARGO_BUILD_ARGS) $(CARGO) $(CARGO_VERBOSE) build $(CARGO_BUILD_ARGS)
touch $@ $(YJIT_LIB_TOUCH)
else else
endif endif