We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a80d39a commit f4729f2Copy full SHA for f4729f2
src/tools/build-manifest/build.rs
@@ -60,7 +60,7 @@ fn main() {
60
let mut output = String::new();
61
62
writeln!(output, "static HOSTS: &[&str] = &[").unwrap();
63
- for host in targets.hosts {
+ for host in &targets.hosts {
64
writeln!(output, " {:?},", host).unwrap();
65
}
66
writeln!(output, "];").unwrap();
@@ -71,6 +71,22 @@ fn main() {
71
72
73
74
+ writeln!(output, "static MSI_INSTALLERS: &[&str] = &[").unwrap();
75
76
+ if host.contains("-windows-") {
77
+ writeln!(output, " {:?},", host).unwrap();
78
+ }
79
80
+ writeln!(output, "];").unwrap();
81
+
82
+ writeln!(output, "static MINGW: &[&str] = &[").unwrap();
83
+ for host in targets.hosts {
84
+ if host.contains("-windows-gnu") {
85
86
87
88
89
90
std::fs::write(PathBuf::from(std::env::var_os("OUT_DIR").unwrap()).join("targets.rs"), output)
91
.unwrap();
92
src/tools/build-manifest/src/main.rs
@@ -29,18 +29,8 @@ static DOCS_FALLBACK: &[(&str, &str)] = &[
29
("", "x86_64-unknown-linux-gnu"),
30
];
31
32
-static MSI_INSTALLERS: &[&str] = &[
33
- "aarch64-pc-windows-msvc",
34
- "i686-pc-windows-gnu",
35
- "i686-pc-windows-msvc",
36
- "x86_64-pc-windows-gnu",
37
- "x86_64-pc-windows-msvc",
38
-];
39
-
40
static PKG_INSTALLERS: &[&str] = &["x86_64-apple-darwin", "aarch64-apple-darwin"];
41
42
-static MINGW: &[&str] = &["i686-pc-windows-gnu", "x86_64-pc-windows-gnu"];
43
44
static NIGHTLY_ONLY_COMPONENTS: &[PkgType] =
45
&[PkgType::Miri, PkgType::JsonDocs, PkgType::RustcCodegenCranelift];
46
0 commit comments