summaryrefslogtreecommitdiff
path: root/yjit
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2023-04-13 17:53:41 -0700
committerTakashi Kokubun <takashikkbn@gmail.com>2023-04-13 17:53:41 -0700
commit8286eed20bbc88ed607dfc38b6e0439934671a45 (patch)
tree26873f88127c6f9118434acd56d845ecad1bbf25 /yjit
parent08413f982cc35cbc7692616dd11ae9bf33de42df (diff)
downloadruby-8286eed20bbc88ed607dfc38b6e0439934671a45.tar.gz
Allow testing a different version
Diffstat (limited to 'yjit')
-rw-r--r--yjit/yjit.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/yjit/yjit.mk b/yjit/yjit.mk
index 80ca124699..c2553fc0bd 100644
--- a/yjit/yjit.mk
+++ b/yjit/yjit.mk
@@ -86,11 +86,13 @@ update-yjit-bench:
$(Q) $(tooldir)/git-refresh -C $(srcdir) --branch main \
https://github.com/Shopify/yjit-bench yjit-bench $(GIT_OPTS)
+RUST_VERSION = +1.58.0
+
# Gives quick feedback about YJIT. Not a replacement for a full test run.
.PHONY: yjit-smoke-test
yjit-smoke-test:
ifneq ($(strip $(CARGO)),)
- $(CARGO) +1.58.0 test --all-features -q --manifest-path='$(top_srcdir)/yjit/Cargo.toml'
+ $(CARGO) $(RUST_VERSION) test --all-features -q --manifest-path='$(top_srcdir)/yjit/Cargo.toml'
endif
$(MAKE) btest RUN_OPTS='--yjit-call-threshold=1' BTESTS=-j
$(MAKE) test-all TESTS='$(top_srcdir)/test/ruby/test_yjit.rb'