From c114fe576f12be5b17e34c37dc34283f25d2eae1 Mon Sep 17 00:00:00 2001 From: Mark Simulacrum Date: Wed, 5 Jul 2017 11:21:33 -0600 Subject: Finish fixing warnings and errors. Bootstrap builds. --- src/bootstrap/lib.rs | 32 +------------------------------- 1 file changed, 1 insertion(+), 31 deletions(-) (limited to 'src/bootstrap/lib.rs') diff --git a/src/bootstrap/lib.rs b/src/bootstrap/lib.rs index 58a5316ea0a..2a7cc58bddd 100644 --- a/src/bootstrap/lib.rs +++ b/src/bootstrap/lib.rs @@ -96,7 +96,7 @@ use std::process::Command; use build_helper::{run_silent, run_suppressed, try_run_silent, try_run_suppressed, output, mtime}; -use util::{exe, libdir, add_lib_path, OutputFolder, CiEnv}; +use util::{exe, libdir, OutputFolder, CiEnv}; mod cc; mod channel; @@ -352,23 +352,6 @@ impl Build { t!(File::create(stamp)); } - /// Get a path to the compiler specified. - fn compiler_path(&self, compiler: Compiler) -> PathBuf { - if compiler.is_snapshot(self) { - self.initial_rustc.clone() - } else { - self.sysroot(compiler).join("bin").join(exe("rustc", compiler.host)) - } - } - - /// Get the `rustdoc` executable next to the specified compiler - fn rustdoc(&self, compiler: Compiler) -> PathBuf { - let mut rustdoc = self.compiler_path(compiler); - rustdoc.pop(); - rustdoc.push(exe("rustdoc", compiler.host)); - rustdoc - } - /// Get the space-separated set of activated features for the standard /// library. fn std_features(&self) -> String { @@ -532,19 +515,6 @@ impl Build { } } - /// Returns the compiler's libdir where it stores the dynamic libraries that - /// it itself links against. - /// - /// For example this returns `/lib` on Unix and `/bin` on - /// Windows. - fn rustc_libdir(&self, compiler: Compiler) -> PathBuf { - if compiler.is_snapshot(self) { - self.rustc_snapshot_libdir() - } else { - self.sysroot(compiler).join(libdir(compiler.host)) - } - } - /// Returns the libdir of the snapshot compiler. fn rustc_snapshot_libdir(&self) -> PathBuf { self.initial_rustc.parent().unwrap().parent().unwrap() -- cgit 1.4.1-3-g733a5