@@ -1008,14 +1008,15 @@ impl Step for LibcxxVersionTool {
1008
1008
1009
1009
macro_rules! tool_extended {
1010
1010
(
1011
- $( $name: ident,
1012
- $path: expr,
1013
- $tool_name: expr,
1014
- stable = $stable: expr
1015
- $( , add_bins_to_sysroot = $add_bins_to_sysroot: expr) ?
1016
- ; ) +) => {
1017
- $(
1018
- #[ derive( Debug , Clone , Hash , PartialEq , Eq ) ]
1011
+ $name: ident {
1012
+ path: $path: expr,
1013
+ tool_name: $tool_name: expr,
1014
+ stable: $stable: expr
1015
+ $( , add_bins_to_sysroot: $add_bins_to_sysroot: expr ) ?
1016
+ $( , ) ?
1017
+ }
1018
+ ) => {
1019
+ #[ derive( Debug , Clone , Hash , PartialEq , Eq ) ]
1019
1020
pub struct $name {
1020
1021
pub compiler: Compiler ,
1021
1022
pub target: TargetSelection ,
@@ -1063,7 +1064,6 @@ macro_rules! tool_extended {
1063
1064
)
1064
1065
}
1065
1066
}
1066
- ) +
1067
1067
}
1068
1068
}
1069
1069
@@ -1109,15 +1109,33 @@ fn run_tool_build_step(
1109
1109
}
1110
1110
}
1111
1111
1112
- tool_extended ! (
1113
- Cargofmt , "src/tools/rustfmt" , "cargo-fmt" , stable=true ;
1114
- CargoClippy , "src/tools/clippy" , "cargo-clippy" , stable=true ;
1115
- Clippy , "src/tools/clippy" , "clippy-driver" , stable=true , add_bins_to_sysroot = [ "clippy-driver" , "cargo-clippy" ] ;
1116
- Miri , "src/tools/miri" , "miri" , stable=false , add_bins_to_sysroot = [ "miri" ] ;
1117
- CargoMiri , "src/tools/miri/cargo-miri" , "cargo-miri" , stable=false , add_bins_to_sysroot = [ "cargo-miri" ] ;
1118
- Rls , "src/tools/rls" , "rls" , stable=true ;
1119
- Rustfmt , "src/tools/rustfmt" , "rustfmt" , stable=true , add_bins_to_sysroot = [ "rustfmt" , "cargo-fmt" ] ;
1120
- ) ;
1112
+ tool_extended ! ( Cargofmt { path: "src/tools/rustfmt" , tool_name: "cargo-fmt" , stable: true } ) ;
1113
+ tool_extended ! ( CargoClippy { path: "src/tools/clippy" , tool_name: "cargo-clippy" , stable: true } ) ;
1114
+ tool_extended ! ( Clippy {
1115
+ path: "src/tools/clippy" ,
1116
+ tool_name: "clippy-driver" ,
1117
+ stable: true ,
1118
+ add_bins_to_sysroot: [ "clippy-driver" , "cargo-clippy" ]
1119
+ } ) ;
1120
+ tool_extended ! ( Miri {
1121
+ path: "src/tools/miri" ,
1122
+ tool_name: "miri" ,
1123
+ stable: false ,
1124
+ add_bins_to_sysroot: [ "miri" ]
1125
+ } ) ;
1126
+ tool_extended ! ( CargoMiri {
1127
+ path: "src/tools/miri/cargo-miri" ,
1128
+ tool_name: "cargo-miri" ,
1129
+ stable: false ,
1130
+ add_bins_to_sysroot: [ "cargo-miri" ]
1131
+ } ) ;
1132
+ tool_extended ! ( Rls { path: "src/tools/rls" , tool_name: "rls" , stable: true } ) ;
1133
+ tool_extended ! ( Rustfmt {
1134
+ path: "src/tools/rustfmt" ,
1135
+ tool_name: "rustfmt" ,
1136
+ stable: true ,
1137
+ add_bins_to_sysroot: [ "rustfmt" , "cargo-fmt" ]
1138
+ } ) ;
1121
1139
1122
1140
#[ derive( Debug , Clone , PartialEq , Eq , Hash ) ]
1123
1141
pub struct TestFloatParse {
0 commit comments