add tool::Cargofmt binary to target sysroot

Signed-off-by: onur-ozkan <work@onurozkan.dev>
This commit is contained in:
onur-ozkan 2025-02-24 14:13:12 +00:00
parent 13f3bd1f7a
commit f677bab5da
2 changed files with 8 additions and 2 deletions

View file

@ -1186,7 +1186,12 @@ fn run_tool_build_step(
}
}
tool_extended!(Cargofmt { path: "src/tools/rustfmt", tool_name: "cargo-fmt", stable: true });
tool_extended!(Cargofmt {
path: "src/tools/rustfmt",
tool_name: "cargo-fmt",
stable: true,
add_bins_to_sysroot: ["cargo-fmt"]
});
tool_extended!(CargoClippy {
path: "src/tools/clippy",
tool_name: "cargo-clippy",
@ -1216,7 +1221,7 @@ tool_extended!(Rustfmt {
path: "src/tools/rustfmt",
tool_name: "rustfmt",
stable: true,
add_bins_to_sysroot: ["rustfmt", "cargo-fmt"]
add_bins_to_sysroot: ["rustfmt"]
});
#[derive(Debug, Clone, PartialEq, Eq, Hash)]

View file

@ -890,6 +890,7 @@ impl<'a> Builder<'a> {
gcc::Gcc,
llvm::Sanitizers,
tool::Rustfmt,
tool::Cargofmt,
tool::Miri,
tool::CargoMiri,
llvm::Lld,