File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
src/cargo/core/compiler/fingerprint Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -1526,11 +1526,14 @@ See https://doc.rust-lang.org/cargo/reference/build-scripts.html#rerun-if-change
1526
1526
. collect :: < CargoResult < Vec < _ > > > ( ) ?
1527
1527
} ;
1528
1528
1529
+ let rustflags = build_runner. bcx . rustflags_args ( unit) . to_vec ( ) ;
1530
+
1529
1531
Ok ( Fingerprint {
1530
1532
local : Mutex :: new ( local) ,
1531
1533
rustc : util:: hash_u64 ( & build_runner. bcx . rustc ( ) . verbose_version ) ,
1532
1534
deps,
1533
1535
outputs : if overridden { Vec :: new ( ) } else { vec ! [ output] } ,
1536
+ rustflags,
1534
1537
1535
1538
// Most of the other info is blank here as we don't really include it
1536
1539
// in the execution of the build script, but... this may be a latent
Original file line number Diff line number Diff line change @@ -5578,6 +5578,9 @@ fn build_script_rerun_when_target_rustflags_change() {
5578
5578
[RUNNING] [..]
5579
5579
" ,
5580
5580
)
5581
- . with_stdout ( "" )
5581
+ . with_stdout (
5582
+ "\
5583
+ hello",
5584
+ )
5582
5585
. run ( ) ;
5583
5586
}
You can’t perform that action at this time.
0 commit comments