File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 11use rand:: { rngs:: SmallRng , Rng , SeedableRng } ;
2+ // mac-os `rand` does some pointer shenanigans
3+ //@compile-flags: -Zmiri-permissive-provenance
24
35fn main ( ) {
46 // Test `getrandom` directly (in multiple different versions).
Original file line number Diff line number Diff line change @@ -32,15 +32,16 @@ pub fn build_dependencies(config: &Config) -> Result<Dependencies> {
3232 // support `cargo miri build` yet.
3333 build. arg ( "run" ) ;
3434
35+ if let Some ( target) = & config. target {
36+ build. arg ( format ! ( "--target={target}" ) ) ;
37+ }
38+
3539 // Reusable closure for setting up the environment both for artifact generation and `cargo_metadata`
3640 let setup_command = |cmd : & mut Command | {
3741 // Avoid poisoning the target directory and causing unnecessary rebuilds.
3842 cmd. env_remove ( "RUSTFLAGS" ) ;
3943
4044 cmd. envs ( envs. iter ( ) . map ( |( k, v) | ( k, v) ) ) ;
41- if let Some ( target) = & config. target {
42- cmd. arg ( format ! ( "--target={target}" ) ) ;
43- }
4445 cmd. arg ( "--manifest-path" ) . arg ( manifest_path) ;
4546 } ;
4647
You can’t perform that action at this time.
0 commit comments