chiark / gitweb /
Makefile: Always run miri on nightly
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 11 May 2022 22:06:27 +0000 (23:06 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 11 May 2022 22:06:57 +0000 (23:06 +0100)
It's not stable.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Makefile

index e324437498a0979a2b441d5f884f1b1297db274a..45c8f096e392f7f78a108e95e707c1cd7c01b5fd 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -142,6 +142,7 @@ WASM := wasm32-unknown-unknown
 # ?  But maybe it doesn't matter since we're very conservative and
 # only pass JsValue and a few strings across the WASM ABI.
 
+RUST_NIGHTLY_VERSION ?= +nightly
 CARGO = $(CARGO_CMD) $(RUST_VERSION)
 
 #---------- toplevel aggregate targets ----------
@@ -223,7 +224,8 @@ stamp/cargo.%-check: $(call rsrcs,.)
        $(stamp)
 
 stamp/cargo.%-miri: $(call rsrcs,.)
-       $(CARGO) miri test --workspace $(call cr,$*)
+       $(CARGO_CMD) $(RUST_NIGHTLY_VERSION) \
+               miri test --workspace $(call cr,$*)
        $(stamp)
 
 stamp/cargo-at.debug: $(call rsrcs,.)