File tree Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change 1
- extern crate vergen;
2
-
3
- use std:: env;
4
-
5
1
fn main ( ) {
6
- // Forward the profile to the main compilation
7
- println ! ( "cargo:rustc-env=PROFILE={}" , env:: var( "PROFILE" ) . unwrap( ) ) ;
8
- // Don't rebuild miri even if nothing changed
2
+ // Don't rebuild miri when nothing changed.
9
3
println ! ( "cargo:rerun-if-changed=build.rs" ) ;
10
4
// vergen
11
5
vergen:: generate_cargo_keys ( vergen:: ConstantsFlags :: all ( ) )
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ fn miri_path() -> PathBuf {
12
12
if rustc_test_suite ( ) . is_some ( ) {
13
13
PathBuf :: from ( option_env ! ( "MIRI_PATH" ) . unwrap ( ) )
14
14
} else {
15
- PathBuf :: from ( concat ! ( "target/" , env!( "PROFILE" ) , "/miri ") )
15
+ PathBuf :: from ( env ! ( "CARGO_BIN_EXE_miri " ) )
16
16
}
17
17
}
18
18
You can’t perform that action at this time.
0 commit comments