@@ -276,6 +276,10 @@ struct StdLink {
276
276
impl Step for StdLink {
277
277
type Output = ( ) ;
278
278
279
+ fn should_run ( _builder : & Builder , _path : & Path ) -> bool {
280
+ false
281
+ }
282
+
279
283
/// Link all libstd rlibs/dylibs into the sysroot location.
280
284
///
281
285
/// Links those artifacts generated by `compiler` to a the `stage` compiler's
@@ -503,6 +507,10 @@ pub struct TestLink {
503
507
impl Step for TestLink {
504
508
type Output = ( ) ;
505
509
510
+ fn should_run ( _builder : & Builder , _path : & Path ) -> bool {
511
+ false
512
+ }
513
+
506
514
/// Same as `std_link`, only for libtest
507
515
fn run ( self , builder : & Builder ) {
508
516
let build = builder. build ;
@@ -691,6 +699,10 @@ struct RustcLink {
691
699
impl Step for RustcLink {
692
700
type Output = ( ) ;
693
701
702
+ fn should_run ( _builder : & Builder , _path : & Path ) -> bool {
703
+ false
704
+ }
705
+
694
706
/// Same as `std_link`, only for librustc
695
707
fn run ( self , builder : & Builder ) {
696
708
let build = builder. build ;
@@ -743,6 +755,10 @@ pub struct Sysroot {
743
755
impl Step for Sysroot {
744
756
type Output = Interned < PathBuf > ;
745
757
758
+ fn should_run ( _builder : & Builder , _path : & Path ) -> bool {
759
+ false
760
+ }
761
+
746
762
/// Returns the sysroot for the `compiler` specified that *this build system
747
763
/// generates*.
748
764
///
@@ -789,6 +805,10 @@ pub struct Assemble {
789
805
impl Step for Assemble {
790
806
type Output = Compiler ;
791
807
808
+ fn should_run ( _builder : & Builder , path : & Path ) -> bool {
809
+ path. ends_with ( "src/rustc" )
810
+ }
811
+
792
812
/// Prepare a new compiler from the artifacts in `stage`
793
813
///
794
814
/// This will assemble a compiler in `build/$host/stage$stage`. The compiler
0 commit comments