File tree 1 file changed +8
-8
lines changed
src/cargo/core/compiler/build_runner
1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -609,14 +609,6 @@ fn compute_metadata(
609
609
// when changing feature sets each lib is separately cached.
610
610
unit. features . hash ( & mut hasher) ;
611
611
612
- // Mix in the target-metadata of all the dependencies of this target.
613
- let mut dep_hashes = deps_metadata
614
- . iter ( )
615
- . map ( |m| m. meta_hash )
616
- . collect :: < Vec < _ > > ( ) ;
617
- dep_hashes. sort ( ) ;
618
- dep_hashes. hash ( & mut hasher) ;
619
-
620
612
// Throw in the profile we're compiling with. This helps caching
621
613
// `panic=abort` and `panic=unwind` artifacts, additionally with various
622
614
// settings like debuginfo and whatnot.
@@ -685,6 +677,14 @@ fn compute_metadata(
685
677
target_configs_are_different. hash ( & mut hasher) ;
686
678
}
687
679
680
+ // Mix in the target-metadata of all the dependencies of this target.
681
+ let mut dep_hashes = deps_metadata
682
+ . iter ( )
683
+ . map ( |m| m. meta_hash )
684
+ . collect :: < Vec < _ > > ( ) ;
685
+ dep_hashes. sort ( ) ;
686
+ dep_hashes. hash ( & mut hasher) ;
687
+
688
688
Metadata {
689
689
meta_hash : UnitHash ( hasher. finish ( ) ) ,
690
690
use_extra_filename : use_extra_filename ( bcx, unit) ,
You can’t perform that action at this time.
0 commit comments