mention json target specs in run_make_support

This commit is contained in:
Rémy Rakic 2024-04-15 19:45:01 +00:00
parent 8acfe9a138
commit af887d3c42

View File

@ -128,9 +128,8 @@ impl Rustc {
self
}
/// Specify target triple.
/// Specify the target triple, or a path to a custom target json spec file.
pub fn target(&mut self, target: &str) -> &mut Self {
assert!(!target.contains(char::is_whitespace), "target triple cannot contain spaces");
self.cmd.arg(format!("--target={target}"));
self
}