File tree 1 file changed +6
-1
lines changed
1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ impl Step for ToolBuild {
63
63
_ => panic ! ( "unexpected Mode for tool build" )
64
64
}
65
65
66
- let cargo = prepare_tool_cargo (
66
+ let mut cargo = prepare_tool_cargo (
67
67
builder,
68
68
compiler,
69
69
self . mode ,
@@ -74,6 +74,11 @@ impl Step for ToolBuild {
74
74
& self . extra_features ,
75
75
) ;
76
76
77
+ // Pass the --bin flags to tell Cargo that is should only build the tool binaries.
78
+ // If not, Cargo will build everything by default, including the deprecated clippy plugin
79
+ // that causes failure on cross-compiled platforms.
80
+ cargo. arg ( "--bin" ) . arg ( & tool) ;
81
+
77
82
builder. info ( & format ! ( "Building stage{} tool {} ({})" , compiler. stage, tool, target) ) ;
78
83
let mut duplicates = Vec :: new ( ) ;
79
84
let is_expected = compile:: stream_cargo ( builder, cargo, vec ! [ ] , & mut |msg| {
You can’t perform that action at this time.
0 commit comments