rustc_target: Normalize vendor from "" to "unknown" for all targets

Majority of targets use "unknown" vendor and changing it from "unknown" to omitted doesn't make sense.
From the LLVM docs (https://clang.llvm.org/docs/CrossCompilation.html#target-triple):

>Most of the time it can be omitted (and Unknown) will be assumed, which sets the defaults for the specified architecture.
>When a parameter is not important, it can be omitted, or you can choose unknown and the defaults will be used. If you choose a parameter that Clang doesn’t know, like blerg, it’ll ignore and assume unknown
This commit is contained in:
Vadim Petrochenkov
2020-11-11 20:40:51 +03:00
parent 443b45fa9f
commit 1def24c5f4
14 changed files with 3 additions and 19 deletions

View File

@@ -21,7 +21,6 @@ pub fn opts() -> TargetOptions {
TargetOptions {
os: "fuchsia".to_string(),
vendor: String::new(),
linker_flavor: LinkerFlavor::Lld(LldFlavor::Ld),
linker: Some("rust-lld".to_owned()),
lld_flavor: LldFlavor::Ld,