Skip to content

Commit 66a27ee

Browse files
committed
add tool::Cargofmt binary to target sysroot
Signed-off-by: onur-ozkan <[email protected]>
1 parent fbc3f74 commit 66a27ee

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/bootstrap/src/core/build_steps/tool.rs

+6-1
Original file line numberDiff line numberDiff line change
@@ -1186,7 +1186,12 @@ fn run_tool_build_step(
11861186
}
11871187
}
11881188

1189-
tool_extended!(Cargofmt { path: "src/tools/rustfmt", tool_name: "cargo-fmt", stable: true });
1189+
tool_extended!(Cargofmt {
1190+
path: "src/tools/rustfmt",
1191+
tool_name: "cargo-fmt",
1192+
stable: true,
1193+
add_bins_to_sysroot: ["cargo-fmt"]
1194+
});
11901195
tool_extended!(CargoClippy {
11911196
path: "src/tools/clippy",
11921197
tool_name: "cargo-clippy",

src/bootstrap/src/core/builder/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -890,6 +890,7 @@ impl<'a> Builder<'a> {
890890
gcc::Gcc,
891891
llvm::Sanitizers,
892892
tool::Rustfmt,
893+
tool::Cargofmt,
893894
tool::Miri,
894895
tool::CargoMiri,
895896
llvm::Lld,

0 commit comments

Comments
 (0)