File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -630,6 +630,10 @@ impl Step for Miri {
630
630
cargo. env ( "MIRI_SYSROOT" , & miri_sysroot) ;
631
631
cargo. env ( "MIRI_HOST_SYSROOT" , sysroot) ;
632
632
cargo. env ( "MIRI" , & miri) ;
633
+ if builder. config . locked_deps {
634
+ // enforce lockfiles
635
+ cargo. env ( "CARGO_EXTRA_FLAGS" , "--locked" ) ;
636
+ }
633
637
634
638
// Set the target.
635
639
cargo. env ( "MIRI_TEST_TARGET" , target. rustc_target_arg ( ) ) ;
@@ -675,6 +679,9 @@ impl Step for Miri {
675
679
) ;
676
680
cargo. add_rustc_lib_path ( builder, compiler) ;
677
681
cargo. arg ( "--" ) . arg ( "miri" ) . arg ( "test" ) ;
682
+ if builder. config . locked_deps {
683
+ cargo. arg ( "--locked" ) ;
684
+ }
678
685
cargo
679
686
. arg ( "--manifest-path" )
680
687
. arg ( builder. src . join ( "src/tools/miri/test-cargo-miri/Cargo.toml" ) ) ;
You can’t perform that action at this time.
0 commit comments