Rollup merge of #113226 - lqd:win-trys, r=Kobzol
Fix try builds on the msvc builder Try builds have been optimized to build less components, however bootstrap was still expecting them to be present on msvc. This PR (extracted from https://github.com/rust-lang/rust/pull/112267) fixes that. r? `@Kobzol`
This commit is contained in:
commit
f607eb47f6
@ -1601,9 +1601,7 @@ impl Step for Extended {
|
|||||||
prepare("cargo");
|
prepare("cargo");
|
||||||
prepare("rust-analysis");
|
prepare("rust-analysis");
|
||||||
prepare("rust-std");
|
prepare("rust-std");
|
||||||
prepare("clippy");
|
for tool in &["clippy", "rust-analyzer", "rust-docs", "rust-demangler", "miri"] {
|
||||||
prepare("rust-analyzer");
|
|
||||||
for tool in &["rust-docs", "rust-demangler", "miri"] {
|
|
||||||
if built_tools.contains(tool) {
|
if built_tools.contains(tool) {
|
||||||
prepare(tool);
|
prepare(tool);
|
||||||
}
|
}
|
||||||
@ -1689,6 +1687,7 @@ impl Step for Extended {
|
|||||||
.arg("-out")
|
.arg("-out")
|
||||||
.arg(exe.join("StdGroup.wxs")),
|
.arg(exe.join("StdGroup.wxs")),
|
||||||
);
|
);
|
||||||
|
if built_tools.contains("rust-analyzer") {
|
||||||
builder.run(
|
builder.run(
|
||||||
Command::new(&heat)
|
Command::new(&heat)
|
||||||
.current_dir(&exe)
|
.current_dir(&exe)
|
||||||
@ -1706,6 +1705,8 @@ impl Step for Extended {
|
|||||||
.arg("-t")
|
.arg("-t")
|
||||||
.arg(etc.join("msi/remove-duplicates.xsl")),
|
.arg(etc.join("msi/remove-duplicates.xsl")),
|
||||||
);
|
);
|
||||||
|
}
|
||||||
|
if built_tools.contains("clippy") {
|
||||||
builder.run(
|
builder.run(
|
||||||
Command::new(&heat)
|
Command::new(&heat)
|
||||||
.current_dir(&exe)
|
.current_dir(&exe)
|
||||||
@ -1723,6 +1724,7 @@ impl Step for Extended {
|
|||||||
.arg("-t")
|
.arg("-t")
|
||||||
.arg(etc.join("msi/remove-duplicates.xsl")),
|
.arg(etc.join("msi/remove-duplicates.xsl")),
|
||||||
);
|
);
|
||||||
|
}
|
||||||
if built_tools.contains("rust-demangler") {
|
if built_tools.contains("rust-demangler") {
|
||||||
builder.run(
|
builder.run(
|
||||||
Command::new(&heat)
|
Command::new(&heat)
|
||||||
@ -1806,7 +1808,6 @@ impl Step for Extended {
|
|||||||
.arg("-dCargoDir=cargo")
|
.arg("-dCargoDir=cargo")
|
||||||
.arg("-dStdDir=rust-std")
|
.arg("-dStdDir=rust-std")
|
||||||
.arg("-dAnalysisDir=rust-analysis")
|
.arg("-dAnalysisDir=rust-analysis")
|
||||||
.arg("-dClippyDir=clippy")
|
|
||||||
.arg("-arch")
|
.arg("-arch")
|
||||||
.arg(&arch)
|
.arg(&arch)
|
||||||
.arg("-out")
|
.arg("-out")
|
||||||
@ -1814,6 +1815,9 @@ impl Step for Extended {
|
|||||||
.arg(&input);
|
.arg(&input);
|
||||||
add_env(builder, &mut cmd, target);
|
add_env(builder, &mut cmd, target);
|
||||||
|
|
||||||
|
if built_tools.contains("clippy") {
|
||||||
|
cmd.arg("-dClippyDir=clippy");
|
||||||
|
}
|
||||||
if built_tools.contains("rust-docs") {
|
if built_tools.contains("rust-docs") {
|
||||||
cmd.arg("-dDocsDir=rust-docs");
|
cmd.arg("-dDocsDir=rust-docs");
|
||||||
}
|
}
|
||||||
@ -1840,7 +1844,9 @@ impl Step for Extended {
|
|||||||
}
|
}
|
||||||
candle("CargoGroup.wxs".as_ref());
|
candle("CargoGroup.wxs".as_ref());
|
||||||
candle("StdGroup.wxs".as_ref());
|
candle("StdGroup.wxs".as_ref());
|
||||||
|
if built_tools.contains("clippy") {
|
||||||
candle("ClippyGroup.wxs".as_ref());
|
candle("ClippyGroup.wxs".as_ref());
|
||||||
|
}
|
||||||
if built_tools.contains("miri") {
|
if built_tools.contains("miri") {
|
||||||
candle("MiriGroup.wxs".as_ref());
|
candle("MiriGroup.wxs".as_ref());
|
||||||
}
|
}
|
||||||
@ -1877,9 +1883,11 @@ impl Step for Extended {
|
|||||||
.arg("CargoGroup.wixobj")
|
.arg("CargoGroup.wixobj")
|
||||||
.arg("StdGroup.wixobj")
|
.arg("StdGroup.wixobj")
|
||||||
.arg("AnalysisGroup.wixobj")
|
.arg("AnalysisGroup.wixobj")
|
||||||
.arg("ClippyGroup.wixobj")
|
|
||||||
.current_dir(&exe);
|
.current_dir(&exe);
|
||||||
|
|
||||||
|
if built_tools.contains("clippy") {
|
||||||
|
cmd.arg("ClippyGroup.wixobj");
|
||||||
|
}
|
||||||
if built_tools.contains("miri") {
|
if built_tools.contains("miri") {
|
||||||
cmd.arg("MiriGroup.wixobj");
|
cmd.arg("MiriGroup.wixobj");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user