}
// rustc command line options
-pub fn optgroups() -> ~[getopts::groups::OptGroup] {
+pub fn optgroups() -> ~[getopts::OptGroup] {
~[
- optflag("c", "", "Compile and assemble, but do not link"),
- optmulti("", "cfg", "Configure the compilation
- environment", "SPEC"),
- optflag("", "emit-llvm",
- "Produce an LLVM assembly file if used with -S option;
- produce an LLVM bitcode file otherwise"),
- optflag("h", "help","Display this message"),
- optmulti("L", "", "Add a directory to the library search path",
- "PATH"),
- optflag("", "bin", "Compile an executable crate (default)"),
- optflag("", "lib", "Compile a rust library crate using the compiler's default"),
- optflag("", "rlib", "Compile a rust library crate as an rlib file"),
- optflag("", "staticlib", "Compile a static library crate"),
- optflag("", "dylib", "Compile a dynamic library crate"),
+ optflag("h", "help", "Display this message"),
+ optmulti("", "cfg", "Configure the compilation environment", "SPEC"),
+ optmulti("L", "", "Add a directory to the library search path", "PATH"),
+ optmulti("", "crate-type", "Comma separated list of types of crates for the \
+ compiler to emit",
+ "[bin|lib|rlib|dylib|staticlib]"),
+ optmulti("", "emit", "Comma separated list of types of output for the compiler
+ to emit",
+ "[asm|bc|ir|obj|link]"),
optopt("", "linker", "Program to use for linking instead of the default.", "LINKER"),
optopt("", "ar", "Program to use for managing archives instead of the default.", "AR"),
optflag("", "crate-id", "Output the crate id and exit"),