mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
mention json target specs in run_make_support
This commit is contained in:
parent
8acfe9a138
commit
af887d3c42
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user