diff options
| author | Alan Wu <XrXr@users.noreply.github.com> | 2025-12-03 17:16:27 -0500 |
|---|---|---|
| committer | Alan Wu <XrXr@users.noreply.github.com> | 2025-12-05 15:49:25 -0500 |
| commit | 8296524fd6cf2fb9ae1eca4be722fe9ee2c26f37 (patch) | |
| tree | f57d944314a92710803949fe49209ad689017684 | |
| parent | 2bc9b5a85454d2536d18be32e0302842bde18a3f (diff) | |
ZJIT: Fix duplicate make rule warning in combo build
~/zjit/zjit.mk:30: warning: overriding commands for target `~/build-default/'
~/yjit/yjit.mk:26: warning: ignoring old commands for target `~/build-default/'
~/zjit/zjit.mk:30: warning: overriding commands for target `~/build-default/'
~/yjit/yjit.mk:26: warning: ignoring old commands for target `~/build-default/'
| -rw-r--r-- | zjit/zjit.mk | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/zjit/zjit.mk b/zjit/zjit.mk index f31b948845..01274dc307 100644 --- a/zjit/zjit.mk +++ b/zjit/zjit.mk @@ -24,8 +24,8 @@ ZJIT_LIB_TOUCH = touch $@ # the "target" dir in the source directory through VPATH. BUILD_ZJIT_LIBS = $(TOP_BUILD_DIR)/$(ZJIT_LIBS) -# ZJIT_SUPPORT=yes when `configure` gets `--enable-zjit` -ifeq ($(ZJIT_SUPPORT),yes) +# In a ZJIT-only build (no YJIT) +ifneq ($(strip $(ZJIT_LIBS)),) $(BUILD_ZJIT_LIBS): $(ZJIT_SRC_FILES) $(ECHO) 'building Rust ZJIT (release mode)' +$(Q) $(RUSTC) $(ZJIT_RUSTC_ARGS) |
