about summary refs log tree commit diff
path: root/src/bootstrap/step.rs
diff options
context:
space:
mode:
authorAhmed Charles <acharles@outlook.com>2016-08-12 23:38:17 -0700
committerAhmed Charles <acharles@outlook.com>2016-10-05 22:42:40 -0700
commite6985b2a6daa5acb84f364f6e6ddfdf170c28f2b (patch)
tree3c5cf03b61417c8dddb214a3faf6a2a0c0af5c15 /src/bootstrap/step.rs
parent46957f05771a427545c792f69b37f8e05dcbb15d (diff)
downloadrust-e6985b2a6daa5acb84f364f6e6ddfdf170c28f2b.tar.gz
rust-e6985b2a6daa5acb84f364f6e6ddfdf170c28f2b.zip
rustbuild: Add install target. #34675
It just prints to the screen currently.
Diffstat (limited to 'src/bootstrap/step.rs')
-rw-r--r--src/bootstrap/step.rs14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/bootstrap/step.rs b/src/bootstrap/step.rs
index e3567107884..22539b31ef2 100644
--- a/src/bootstrap/step.rs
+++ b/src/bootstrap/step.rs
@@ -140,6 +140,9 @@ macro_rules! targets {
             (dist_std, DistStd { compiler: Compiler<'a> }),
             (dist_src, DistSrc { _dummy: () }),
 
+            // install target
+            (install, Install { stage: u32 }),
+
             // Misc targets
             (android_copy_libs, AndroidCopyLibs { compiler: Compiler<'a> }),
         }
@@ -249,8 +252,7 @@ fn top_level(build: &Build) -> Vec<Step> {
         }
     }
 
-    return targets
-
+    targets
 }
 
 fn add_steps<'a>(build: &'a Build,
@@ -467,7 +469,7 @@ impl<'a> Step<'a> {
                         self.dist(stage),
                     ]);
                 }
-                return base
+                base
             }
             Source::CheckLinkcheck { stage } => {
                 vec![self.tool_linkchecker(stage), self.doc(stage)]
@@ -590,7 +592,11 @@ impl<'a> Step<'a> {
                         base.push(target.dist_std(compiler));
                     }
                 }
-                return base
+                base
+            }
+
+            Source::Install { stage } => {
+                vec![self.dist(stage)]
             }
 
             Source::AndroidCopyLibs { compiler } => {