diff options
| author | Mateusz Mikuła <mati865@gmail.com> | 2022-01-22 12:06:44 +0100 |
|---|---|---|
| committer | Mateusz Mikuła <mati865@gmail.com> | 2022-01-22 12:06:44 +0100 |
| commit | 9427ccbecdcb60693cff37d51e8a9353e7bea475 (patch) | |
| tree | 8ca2dc1911648194b97ad56e1f370f28baef3bb2 | |
| parent | ecf72996eda4f8af19b0ca7235c6f62e0245a313 (diff) | |
| download | rust-9427ccbecdcb60693cff37d51e8a9353e7bea475.tar.gz rust-9427ccbecdcb60693cff37d51e8a9353e7bea475.zip | |
Remove dead code from build_helper
| -rw-r--r-- | src/build_helper/lib.rs | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/build_helper/lib.rs b/src/build_helper/lib.rs index b1ec072f3f8..28e95d81bb7 100644 --- a/src/build_helper/lib.rs +++ b/src/build_helper/lib.rs @@ -55,12 +55,6 @@ pub fn restore_library_path() { } } -/// Run the command, printing what we are running. -pub fn run_verbose(cmd: &mut Command) { - println!("running: {:?}", cmd); - run(cmd); -} - pub fn run(cmd: &mut Command) { if !try_run(cmd) { std::process::exit(1); @@ -108,16 +102,6 @@ pub fn try_run_suppressed(cmd: &mut Command) -> bool { output.status.success() } -pub fn gnu_target(target: &str) -> &str { - match target { - "i686-pc-windows-msvc" => "i686-pc-win32", - "x86_64-pc-windows-msvc" => "x86_64-pc-win32", - "i686-pc-windows-gnu" => "i686-w64-mingw32", - "x86_64-pc-windows-gnu" => "x86_64-w64-mingw32", - s => s, - } -} - pub fn make(host: &str) -> PathBuf { if host.contains("dragonfly") || host.contains("freebsd") |
