Skip to content

Commit eea00ca

Browse files
Add target method to Rustdoc type
1 parent d25cf6f commit eea00ca

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Diff for: src/tools/run-make-support/src/rustdoc.rs

+6
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,12 @@ impl Rustdoc {
123123
self
124124
}
125125

126+
/// Specify the target triple, or a path to a custom target json spec file.
127+
pub fn target(&mut self, target: &str) -> &mut Self {
128+
self.cmd.arg(format!("--target={target}"));
129+
self
130+
}
131+
126132
/// Specify the crate type.
127133
pub fn crate_type(&mut self, crate_type: &str) -> &mut Self {
128134
self.cmd.arg("--crate-type");

0 commit comments

Comments
 (0)