mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-15 17:23:10 +00:00
Use TargetTriple::from_path in rustdoc
This commit is contained in:
parent
69b352ef77
commit
8260b8325c
@ -565,7 +565,7 @@ impl Options {
|
||||
let target =
|
||||
matches.opt_str("target").map_or(TargetTriple::from_triple(host_triple()), |target| {
|
||||
if target.ends_with(".json") {
|
||||
TargetTriple::TargetPath(PathBuf::from(target))
|
||||
TargetTriple::from_path(Path::new(&target))
|
||||
} else {
|
||||
TargetTriple::TargetTriple(target)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user