Skip to content

Commit 86102ad

Browse files
committed
JITs: Move cargo-specific variables into conditional
1 parent f59a9ae commit 86102ad

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

defs/jit.mk

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
# Make recipes that deal with the rust code of YJIT and ZJIT.
22

3-
# Because of Cargo cache, if the actual binary is not changed from the
4-
# previous build, the mtime is preserved as the cached file.
5-
# This means the target is not updated actually, and it will need to
6-
# rebuild at the next build.
7-
RUST_LIB_TOUCH = touch $@
8-
93
ifneq ($(JIT_CARGO_SUPPORT),no)
104

115
# Show Cargo progress when doing `make V=1`
126
CARGO_VERBOSE_0 = -q
137
CARGO_VERBOSE_1 =
148
CARGO_VERBOSE = $(CARGO_VERBOSE_$(V))
159

10+
# Because of Cargo cache, if the actual binary is not changed from the
11+
# previous build, the mtime is preserved as the cached file.
12+
# This means the target is not updated actually, and it will need to
13+
# rebuild at the next build.
14+
RUST_LIB_TOUCH = touch $@
15+
1616
# NOTE: MACOSX_DEPLOYMENT_TARGET to match `rustc --print deployment-target` to avoid the warning below.
1717
# ld: warning: object file (target/debug/libjit.a(<libcapstone object>)) was built for
1818
# newer macOS version (15.2) than being linked (15.0)
@@ -30,7 +30,7 @@ $(RUST_LIB): $(srcdir)/ruby.rs
3030
MACOSX_DEPLOYMENT_TARGET=11.0 \
3131
$(CARGO) $(CARGO_VERBOSE) build --manifest-path '$(top_srcdir)/Cargo.toml' $(CARGO_BUILD_ARGS)
3232
$(RUST_LIB_TOUCH)
33-
endif
33+
endif # ifneq ($(JIT_CARGO_SUPPORT),no)
3434

3535
RUST_LIB_SYMBOLS = $(RUST_LIB:.a=).symbols
3636
$(RUST_LIBOBJ): $(RUST_LIB)

0 commit comments

Comments
 (0)