]> git.lizzy.rs Git - rust.git/blobdiff - src/bootstrap/install.rs
Move rule configs out of step
[rust.git] / src / bootstrap / install.rs
index 8e2ef527b1658dc0ea4a6a0aca491b439dfbf1f3..638b0613bf2ccf6c5b50e340ccdf0d9809130752 100644 (file)
@@ -148,3 +148,45 @@ fn add_destdir(path: &Path, destdir: &Option<PathBuf>) -> PathBuf {
     }
     ret
 }
+/*
+rules.install("install-docs", "src/doc")
+     .default(build.config.docs)
+     .only_host_build(true)
+     .dep(|s| s.name("dist-docs"))
+     .run(move |s| install::Installer::new(build).install_docs(s.stage, s.target));
+rules.install("install-std", "src/libstd")
+     .default(true)
+     .only_host_build(true)
+     .dep(|s| s.name("dist-std"))
+     .run(move |s| install::Installer::new(build).install_std(s.stage));
+rules.install("install-cargo", "cargo")
+     .default(build.config.extended)
+     .host(true)
+     .only_host_build(true)
+     .dep(|s| s.name("dist-cargo"))
+     .run(move |s| install::Installer::new(build).install_cargo(s.stage, s.target));
+rules.install("install-rls", "rls")
+     .default(build.config.extended)
+     .host(true)
+     .only_host_build(true)
+     .dep(|s| s.name("dist-rls"))
+     .run(move |s| install::Installer::new(build).install_rls(s.stage, s.target));
+rules.install("install-analysis", "analysis")
+     .default(build.config.extended)
+     .only_host_build(true)
+     .dep(|s| s.name("dist-analysis"))
+     .run(move |s| install::Installer::new(build).install_analysis(s.stage, s.target));
+rules.install("install-src", "src")
+     .default(build.config.extended)
+     .host(true)
+     .only_build(true)
+     .only_host_build(true)
+     .dep(|s| s.name("dist-src"))
+     .run(move |s| install::Installer::new(build).install_src(s.stage));
+rules.install("install-rustc", "src/librustc")
+     .default(true)
+     .host(true)
+     .only_host_build(true)
+     .dep(|s| s.name("dist-rustc"))
+     .run(move |s| install::Installer::new(build).install_rustc(s.stage, s.target));
+*/