@@ -279,6 +279,7 @@ options:
279
279
--no-typestate don't run the typestate pass (unsafe!)
280
280
--test build test harness
281
281
--dps translate via destination-passing style (experimental)
282
+ --gc garbage collect shared data (experimental/temporary)
282
283
283
284
" ) ;
284
285
}
@@ -385,6 +386,7 @@ fn build_session_options(binary: str, match: getopts::match, binary_dir: str)
385
386
let cfg = parse_cfgspecs( getopts:: opt_strs( match , "cfg" ) ) ;
386
387
let test = opt_present( match , "test" ) ;
387
388
let dps = opt_present( match , "dps" ) ;
389
+ let do_gc = opt_present( match , "gc" ) ;
388
390
let sopts: @session:: options =
389
391
@{ library: library,
390
392
static : static ,
@@ -403,7 +405,8 @@ fn build_session_options(binary: str, match: getopts::match, binary_dir: str)
403
405
test : test ,
404
406
dps : dps ,
405
407
parse_only : parse_only ,
406
- no_trans : no_trans } ;
408
+ no_trans : no_trans ,
409
+ do_gc : do_gc } ;
407
410
ret sopts;
408
411
}
409
412
@@ -435,7 +438,7 @@ fn opts() -> vec[getopts::opt] {
435
438
optopt ( "sysroot" ) , optflag ( "stats" ) , optflag ( "time-passes" ) ,
436
439
optflag ( "time-llvm-passes" ) , optflag ( "no-typestate" ) ,
437
440
optflag ( "noverify" ) , optmulti ( "cfg" ) , optflag ( "test" ) ,
438
- optflag ( "lib" ) , optflag ( "static" ) , optflag ( "dps" ) ] ;
441
+ optflag ( "lib" ) , optflag ( "static" ) , optflag ( "dps" ) , optflag ( "gc" ) ] ;
439
442
}
440
443
441
444
fn main( args : vec[ str ] ) {
0 commit comments