Skip to content

Commit f98863f

Browse files
committed
---
yaml --- r: 2494 b: refs/heads/master c: 5ceaf34 h: refs/heads/master v: v3
1 parent 0d334ac commit f98863f

File tree

4 files changed

+270
-87
lines changed

4 files changed

+270
-87
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 295c037aac7b48a3d00593b21f00d7ff07127985
2+
refs/heads/master: 5ceaf345ed8d70b444907b09e61c1b347dad436c

trunk/src/comp/driver/rustc.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ options:
158158
-S compile only; do not assemble or link
159159
-c compile and assemble, but do not link
160160
--save-temps write intermediate files in addition to normal output
161+
--stats gather and report various compilation statistics
161162
--time-passes time the individual phases of the compiler
162163
--time-llvm-passes time the individual phases of the LLVM backend
163164
--sysroot <path> override the system root (default: rustc's directory)
@@ -212,6 +213,7 @@ fn main(vec[str] args) {
212213
optflag("O"), optflag("shared"), optmulti("L"),
213214
optflag("S"), optflag("c"), optopt("o"), optflag("g"),
214215
optflag("save-temps"), optopt("sysroot"),
216+
optflag("stats"),
215217
optflag("time-passes"), optflag("time-llvm-passes"),
216218
optflag("no-typestate"), optflag("noverify"));
217219
auto binary = _vec::shift[str](args);
@@ -256,6 +258,7 @@ fn main(vec[str] args) {
256258
// FIXME: Maybe we should support -O0, -O1, -Os, etc
257259
auto optimize = opt_present(match, "O");
258260
auto debuginfo = opt_present(match, "g");
261+
auto stats = opt_present(match, "stats");
259262
auto time_passes = opt_present(match, "time-passes");
260263
auto time_llvm_passes = opt_present(match, "time-llvm-passes");
261264
auto run_typestate = !opt_present(match, "no-typestate");
@@ -274,6 +277,7 @@ fn main(vec[str] args) {
274277
verify = verify,
275278
run_typestate = run_typestate,
276279
save_temps = save_temps,
280+
stats = stats,
277281
time_passes = time_passes,
278282
time_llvm_passes = time_llvm_passes,
279283
output_type = output_type,

trunk/src/comp/driver/session.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ type options = rec(bool shared,
3131
bool verify,
3232
bool run_typestate,
3333
bool save_temps,
34+
bool stats,
3435
bool time_passes,
3536
bool time_llvm_passes,
3637
back::Link::output_type output_type,

0 commit comments

Comments
 (0)