Skip to content

Commit 29f8139

Browse files
committed
---
yaml --- r: 4551 b: refs/heads/master c: a5d5f9e h: refs/heads/master i: 4549: 7ddbd4f 4547: c0a217c 4543: 6f5865e v: v3
1 parent 1b077e2 commit 29f8139

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

[refs]

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: c5c8258937f056a0f4b0e83e1d878c268daa09ff
2+
refs/heads/master: a5d5f9ef4871d5340f8a7820309ed6ea97648058

trunk/src/comp/driver/rustc.rs

+5-2
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,7 @@ options:
279279
--no-typestate don't run the typestate pass (unsafe!)
280280
--test build test harness
281281
--dps translate via destination-passing style (experimental)
282+
--gc garbage collect shared data (experimental/temporary)
282283
283284
");
284285
}
@@ -385,6 +386,7 @@ fn build_session_options(binary: str, match: getopts::match, binary_dir: str)
385386
let cfg = parse_cfgspecs(getopts::opt_strs(match, "cfg"));
386387
let test = opt_present(match, "test");
387388
let dps = opt_present(match, "dps");
389+
let do_gc = opt_present(match, "gc");
388390
let sopts: @session::options =
389391
@{library: library,
390392
static: static,
@@ -403,7 +405,8 @@ fn build_session_options(binary: str, match: getopts::match, binary_dir: str)
403405
test: test,
404406
dps: dps,
405407
parse_only: parse_only,
406-
no_trans: no_trans};
408+
no_trans: no_trans,
409+
do_gc: do_gc};
407410
ret sopts;
408411
}
409412

@@ -435,7 +438,7 @@ fn opts() -> vec[getopts::opt] {
435438
optopt("sysroot"), optflag("stats"), optflag("time-passes"),
436439
optflag("time-llvm-passes"), optflag("no-typestate"),
437440
optflag("noverify"), optmulti("cfg"), optflag("test"),
438-
optflag("lib"), optflag("static"), optflag("dps")];
441+
optflag("lib"), optflag("static"), optflag("dps"), optflag("gc")];
439442
}
440443

441444
fn main(args: vec[str]) {

trunk/src/comp/driver/session.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ type options =
4343
test: bool,
4444
dps: bool,
4545
parse_only: bool,
46-
no_trans: bool
46+
no_trans: bool,
47+
do_gc: bool
4748
};
4849

4950
type crate_metadata = {name: str, data: [u8]};

0 commit comments

Comments
 (0)