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 1
1
use rand:: { rngs:: SmallRng , Rng , SeedableRng } ;
2
+ // mac-os `rand` does some pointer shenanigans
3
+ //@compile-flags: -Zmiri-permissive-provenance
2
4
3
5
fn main ( ) {
4
6
// 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> {
32
32
// support `cargo miri build` yet.
33
33
build. arg ( "run" ) ;
34
34
35
+ if let Some ( target) = & config. target {
36
+ build. arg ( format ! ( "--target={target}" ) ) ;
37
+ }
38
+
35
39
// Reusable closure for setting up the environment both for artifact generation and `cargo_metadata`
36
40
let setup_command = |cmd : & mut Command | {
37
41
// Avoid poisoning the target directory and causing unnecessary rebuilds.
38
42
cmd. env_remove ( "RUSTFLAGS" ) ;
39
43
40
44
cmd. envs ( envs. iter ( ) . map ( |( k, v) | ( k, v) ) ) ;
41
- if let Some ( target) = & config. target {
42
- cmd. arg ( format ! ( "--target={target}" ) ) ;
43
- }
44
45
cmd. arg ( "--manifest-path" ) . arg ( manifest_path) ;
45
46
} ;
46
47
You can’t perform that action at this time.
0 commit comments