Skip to content

Commit b591eb0

Browse files
committed
Drop aux_build rustc helpers
They provide very little value and makes it more confusing than is helpful.
1 parent c9cd707 commit b591eb0

File tree

2 files changed

+1
-15
lines changed

2 files changed

+1
-15
lines changed

src/tools/run-make-support/src/external_deps/rustc.rs

-14
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,6 @@ pub fn bare_rustc() -> Rustc {
2222
Rustc::bare()
2323
}
2424

25-
/// Construct a new `rustc` aux-build invocation.
26-
#[track_caller]
27-
pub fn aux_build() -> Rustc {
28-
Rustc::new_aux_build()
29-
}
30-
3125
/// A `rustc` invocation builder.
3226
#[derive(Debug)]
3327
#[must_use]
@@ -67,14 +61,6 @@ impl Rustc {
6761
Self { cmd }
6862
}
6963

70-
/// Construct a new `rustc` invocation with `aux_build` preset (setting `--crate-type=lib`).
71-
#[track_caller]
72-
pub fn new_aux_build() -> Self {
73-
let mut cmd = setup_common();
74-
cmd.arg("--crate-type=lib");
75-
Self { cmd }
76-
}
77-
7864
// Argument provider methods
7965

8066
/// Configure the compilation environment.

src/tools/run-make-support/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ pub use llvm::{
6868
LlvmFilecheck, LlvmNm, LlvmObjcopy, LlvmObjdump, LlvmProfdata, LlvmReadobj,
6969
};
7070
pub use python::python_command;
71-
pub use rustc::{aux_build, bare_rustc, rustc, rustc_path, Rustc};
71+
pub use rustc::{bare_rustc, rustc, rustc_path, Rustc};
7272
pub use rustdoc::{rustdoc, Rustdoc};
7373

7474
/// [`diff`][mod@diff] is implemented in terms of the [similar] library.

0 commit comments

Comments
 (0)