diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2022-01-23 01:09:47 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-23 01:09:47 +0100 |
| commit | 1a935a52be89f5b80b287a7c08a77b5dc1efaaeb (patch) | |
| tree | c5ea8fc33da428b1d89b78c31b692d53bf151506 | |
| parent | d4c9c5ad66b7567bc77e1cf73c00cc78a71621a8 (diff) | |
| parent | 9427ccbecdcb60693cff37d51e8a9353e7bea475 (diff) | |
| download | rust-1a935a52be89f5b80b287a7c08a77b5dc1efaaeb.tar.gz rust-1a935a52be89f5b80b287a7c08a77b5dc1efaaeb.zip | |
Rollup merge of #93196 - mati865:remove-build_helper-dead-code, r=Mark-Simulacrum
Remove dead code from build_helper Tested with `./x.py check` ran on x86_64 Linux.
| -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") |
