File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
crates/cargo-codspeed/src Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -61,6 +61,10 @@ enum Commands {
61
61
#[ arg( long) ]
62
62
no_default_features : bool ,
63
63
64
+ /// Number of parallel jobs.
65
+ #[ arg( short, long) ]
66
+ jobs : Option < u32 > ,
67
+
64
68
/// Build the benchmarks with the specified profile
65
69
#[ arg( long, default_value = "release" ) ]
66
70
profile : String ,
@@ -84,6 +88,7 @@ pub fn run(args: impl Iterator<Item = OsString>) -> Result<()> {
84
88
filters,
85
89
features,
86
90
all_features,
91
+ jobs,
87
92
no_default_features,
88
93
profile,
89
94
} => {
@@ -98,6 +103,10 @@ pub fn run(args: impl Iterator<Item = OsString>) -> Result<()> {
98
103
passthrough_flags. push ( "--no-default-features" . to_string ( ) ) ;
99
104
}
100
105
106
+ if let Some ( jobs) = jobs {
107
+ passthrough_flags. push ( format ! ( "--jobs={jobs}" ) ) ;
108
+ }
109
+
101
110
passthrough_flags
102
111
} ;
103
112
let features =
You can’t perform that action at this time.
0 commit comments