about summary refs log tree commit diff
path: root/src/tools
diff options
context:
space:
mode:
authorJieyou Xu <jieyouxu@outlook.com>2025-04-02 15:31:50 +0800
committerJieyou Xu <jieyouxu@outlook.com>2025-04-02 15:39:55 +0800
commitb591eb022da2528b63098e69f4d818675b78b40f (patch)
treea3e763845eee14865ede75b3c1dbd7f66a90d08a /src/tools
parentc9cd7078450abc15f6b8c969b1021934fb36c2a6 (diff)
downloadrust-b591eb022da2528b63098e69f4d818675b78b40f.tar.gz
rust-b591eb022da2528b63098e69f4d818675b78b40f.zip
Drop `aux_build` rustc helpers
They provide very little value and makes it more confusing than is
helpful.
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/run-make-support/src/external_deps/rustc.rs14
-rw-r--r--src/tools/run-make-support/src/lib.rs2
2 files changed, 1 insertions, 15 deletions
diff --git a/src/tools/run-make-support/src/external_deps/rustc.rs b/src/tools/run-make-support/src/external_deps/rustc.rs
index 0e2239147f1..a7081d4f86a 100644
--- a/src/tools/run-make-support/src/external_deps/rustc.rs
+++ b/src/tools/run-make-support/src/external_deps/rustc.rs
@@ -22,12 +22,6 @@ pub fn bare_rustc() -> Rustc {
     Rustc::bare()
 }
 
-/// Construct a new `rustc` aux-build invocation.
-#[track_caller]
-pub fn aux_build() -> Rustc {
-    Rustc::new_aux_build()
-}
-
 /// A `rustc` invocation builder.
 #[derive(Debug)]
 #[must_use]
@@ -67,14 +61,6 @@ impl Rustc {
         Self { cmd }
     }
 
-    /// Construct a new `rustc` invocation with `aux_build` preset (setting `--crate-type=lib`).
-    #[track_caller]
-    pub fn new_aux_build() -> Self {
-        let mut cmd = setup_common();
-        cmd.arg("--crate-type=lib");
-        Self { cmd }
-    }
-
     // Argument provider methods
 
     /// Configure the compilation environment.
diff --git a/src/tools/run-make-support/src/lib.rs b/src/tools/run-make-support/src/lib.rs
index e0ad3ee9bed..fd22ff6c8bc 100644
--- a/src/tools/run-make-support/src/lib.rs
+++ b/src/tools/run-make-support/src/lib.rs
@@ -68,7 +68,7 @@ pub use llvm::{
     LlvmFilecheck, LlvmNm, LlvmObjcopy, LlvmObjdump, LlvmProfdata, LlvmReadobj,
 };
 pub use python::python_command;
-pub use rustc::{aux_build, bare_rustc, rustc, rustc_path, Rustc};
+pub use rustc::{bare_rustc, rustc, rustc_path, Rustc};
 pub use rustdoc::{rustdoc, Rustdoc};
 
 /// [`diff`][mod@diff] is implemented in terms of the [similar] library.