@@ -521,9 +521,6 @@ pub fn build_session_options(+binary: ~str,
521
521
} else {
522
522
session::unknown_crate
523
523
};
524
- let static = opt_present(matches, ~" static ");
525
- let gc = opt_present(matches, ~" gc");
526
-
527
524
let parse_only = opt_present(matches, ~" parse-only");
528
525
let no_trans = opt_present(matches, ~" no-trans");
529
526
@@ -570,7 +567,6 @@ pub fn build_session_options(+binary: ~str,
570
567
}
571
568
}
572
569
573
- let jit = opt_present(matches, ~" jit");
574
570
let output_type =
575
571
if parse_only || no_trans {
576
572
link::output_type_none
@@ -584,8 +580,6 @@ pub fn build_session_options(+binary: ~str,
584
580
} else if opt_present(matches, ~" emit-llvm") {
585
581
link::output_type_bitcode
586
582
} else { link::output_type_exe };
587
- let extra_debuginfo = opt_present(matches, ~" xg");
588
- let debuginfo = opt_present(matches, ~" g") || extra_debuginfo;
589
583
let sysroot_opt = getopts::opt_maybe_str(matches, ~" sysroot");
590
584
let sysroot_opt = sysroot_opt.map(|m| Path(*m));
591
585
let target_opt = getopts::opt_maybe_str(matches, ~" target");
@@ -616,6 +610,12 @@ pub fn build_session_options(+binary: ~str,
616
610
}
617
611
} else { No }
618
612
};
613
+ let gc = debugging_opts & session::gc != 0;
614
+ let jit = debugging_opts & session::jit != 0;
615
+ let extra_debuginfo = debugging_opts & session::extra_debug_info != 0;
616
+ let debuginfo = debugging_opts & session::debug_info != 0 ||
617
+ extra_debuginfo;
618
+ let static = debugging_opts & session::static != 0;
619
619
let target =
620
620
match target_opt {
621
621
None => host_triple(),
@@ -714,14 +714,11 @@ pub fn optgroups() -> ~[getopts::groups::OptGroup] {
714
714
environment", ~"SPEC ") ,
715
715
optflag ( ~"", ~"emit-llvm",
716
716
~"Produce an LLVM bitcode file") ,
717
- optflag ( ~"g", ~"", ~"Produce debug info ( experimental) ") ,
718
- optflag ( ~"", ~"gc", ~"Garbage collect shared data ( experimental) ") ,
719
717
optflag ( ~"h", ~"help", ~"Display this message") ,
720
718
optmulti ( ~"L ", ~"", ~"Add a directory to the library search path",
721
719
~"PATH ") ,
722
720
optflag ( ~"", ~"lib", ~"Compile a library crate") ,
723
721
optflag ( ~"", ~"ls", ~"List the symbols defined by a library crate") ,
724
- optflag ( ~"", ~"jit", ~"Execute using JIT ( experimental) ") ,
725
722
optflag ( ~"", ~"no-trans",
726
723
~"Run all passes except translation; no output") ,
727
724
optflag ( ~"O ", ~"", ~"Equivalent to --opt-level=2 ") ,
@@ -741,13 +738,9 @@ pub fn optgroups() -> ~[getopts::groups::OptGroup] {
741
738
or identified ( fully parenthesized,
742
739
AST nodes and blocks with IDs ) ", ~"TYPE ") ,
743
740
optflag ( ~"S ", ~"", ~"Compile only; do not assemble or link") ,
744
- optflag ( ~"", ~"xg", ~"Extra debugging info ( experimental) ") ,
745
741
optflag ( ~"", ~"save-temps",
746
742
~"Write intermediate files ( . bc , . opt . bc , . o )
747
743
in addition to normal output") ,
748
- optflag ( ~"", ~"static ",
749
- ~"Use or produce static libraries or binaries
750
- ( experimental) ") ,
751
744
optopt ( ~"", ~"sysroot",
752
745
~"Override the system root", ~"PATH ") ,
753
746
optflag ( ~"", ~"test", ~"Build a test harness") ,
0 commit comments