add tool::Cargofmt
binary to target sysroot
Signed-off-by: onur-ozkan <work@onurozkan.dev>
This commit is contained in:
parent
13f3bd1f7a
commit
f677bab5da
2 changed files with 8 additions and 2 deletions
|
@ -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)]
|
||||
|
|
|
@ -890,6 +890,7 @@ impl<'a> Builder<'a> {
|
|||
gcc::Gcc,
|
||||
llvm::Sanitizers,
|
||||
tool::Rustfmt,
|
||||
tool::Cargofmt,
|
||||
tool::Miri,
|
||||
tool::CargoMiri,
|
||||
llvm::Lld,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue