@@ -158,6 +158,7 @@ options:
158
158
-S compile only; do not assemble or link
159
159
-c compile and assemble, but do not link
160
160
--save-temps write intermediate files in addition to normal output
161
+ --stats gather and report various compilation statistics
161
162
--time-passes time the individual phases of the compiler
162
163
--time-llvm-passes time the individual phases of the LLVM backend
163
164
--sysroot <path> override the system root (default: rustc's directory)
@@ -212,6 +213,7 @@ fn main(vec[str] args) {
212
213
optflag ( "O" ) , optflag ( "shared" ) , optmulti ( "L" ) ,
213
214
optflag ( "S" ) , optflag ( "c" ) , optopt ( "o" ) , optflag ( "g" ) ,
214
215
optflag ( "save-temps" ) , optopt ( "sysroot" ) ,
216
+ optflag ( "stats" ) ,
215
217
optflag ( "time-passes" ) , optflag ( "time-llvm-passes" ) ,
216
218
optflag ( "no-typestate" ) , optflag ( "noverify" ) ) ;
217
219
auto binary = _vec:: shift[ str] ( args) ;
@@ -256,6 +258,7 @@ fn main(vec[str] args) {
256
258
// FIXME: Maybe we should support -O0, -O1, -Os, etc
257
259
auto optimize = opt_present( match , "O" ) ;
258
260
auto debuginfo = opt_present( match , "g" ) ;
261
+ auto stats = opt_present( match , "stats" ) ;
259
262
auto time_passes = opt_present( match , "time-passes" ) ;
260
263
auto time_llvm_passes = opt_present( match , "time-llvm-passes" ) ;
261
264
auto run_typestate = !opt_present ( match , "no-typestate" ) ;
@@ -274,6 +277,7 @@ fn main(vec[str] args) {
274
277
verify = verify,
275
278
run_typestate = run_typestate,
276
279
save_temps = save_temps,
280
+ stats = stats,
277
281
time_passes = time_passes,
278
282
time_llvm_passes = time_llvm_passes,
279
283
output_type = output_type,
0 commit comments