From 8286eed20bbc88ed607dfc38b6e0439934671a45 Mon Sep 17 00:00:00 2001 From: Takashi Kokubun Date: Thu, 13 Apr 2023 17:53:41 -0700 Subject: [PATCH] Allow testing a different version --- yjit/yjit.mk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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'