rustc: Add a --gc switch for debugging and experimentation
This commit is contained in:
parent
c5c8258937
commit
a5d5f9ef48
2 changed files with 7 additions and 3 deletions
|
|
@ -279,6 +279,7 @@ options:
|
|||
--no-typestate don't run the typestate pass (unsafe!)
|
||||
--test build test harness
|
||||
--dps translate via destination-passing style (experimental)
|
||||
--gc garbage collect shared data (experimental/temporary)
|
||||
|
||||
");
|
||||
}
|
||||
|
|
@ -385,6 +386,7 @@ fn build_session_options(binary: str, match: getopts::match, binary_dir: str)
|
|||
let cfg = parse_cfgspecs(getopts::opt_strs(match, "cfg"));
|
||||
let test = opt_present(match, "test");
|
||||
let dps = opt_present(match, "dps");
|
||||
let do_gc = opt_present(match, "gc");
|
||||
let sopts: @session::options =
|
||||
@{library: library,
|
||||
static: static,
|
||||
|
|
@ -403,7 +405,8 @@ fn build_session_options(binary: str, match: getopts::match, binary_dir: str)
|
|||
test: test,
|
||||
dps: dps,
|
||||
parse_only: parse_only,
|
||||
no_trans: no_trans};
|
||||
no_trans: no_trans,
|
||||
do_gc: do_gc};
|
||||
ret sopts;
|
||||
}
|
||||
|
||||
|
|
@ -435,7 +438,7 @@ fn opts() -> vec[getopts::opt] {
|
|||
optopt("sysroot"), optflag("stats"), optflag("time-passes"),
|
||||
optflag("time-llvm-passes"), optflag("no-typestate"),
|
||||
optflag("noverify"), optmulti("cfg"), optflag("test"),
|
||||
optflag("lib"), optflag("static"), optflag("dps")];
|
||||
optflag("lib"), optflag("static"), optflag("dps"), optflag("gc")];
|
||||
}
|
||||
|
||||
fn main(args: vec[str]) {
|
||||
|
|
|
|||
|
|
@ -43,7 +43,8 @@ type options =
|
|||
test: bool,
|
||||
dps: bool,
|
||||
parse_only: bool,
|
||||
no_trans: bool
|
||||
no_trans: bool,
|
||||
do_gc: bool
|
||||
};
|
||||
|
||||
type crate_metadata = {name: str, data: [u8]};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue