\fB\-L\fR PATH
Add a directory to the library search path
.TP
-\fB\-\-ls\fR
-List the symbols defined by a library crate
-.TP
\fB\-\-no\-trans\fR
Run all passes except translation; no output
.TP
optflag("", "crate-name", "Output the crate name and exit"),
optflag("", "crate-file-name", "Output the file(s) that would be written if compilation \
continued and exit"),
- optflag("", "ls", "List the symbols defined by a library crate"),
optflag("g", "", "Equivalent to --debuginfo=2"),
optopt("", "debuginfo", "Emit DWARF debug info to the objects created:
0 = no debug info,
PRINT_LLVM_PASSES,
LTO,
AST_JSON,
- AST_JSON_NOEXPAND
+ AST_JSON_NOEXPAND,
+ LS
]
0
)
PRINT_LLVM_PASSES),
("lto", "Perform LLVM link-time optimizations", LTO),
("ast-json", "Print the AST as JSON and halt", AST_JSON),
- ("ast-json-noexpand", "Print the pre-expansion AST as JSON and halt", AST_JSON_NOEXPAND))
+ ("ast-json-noexpand", "Print the pre-expansion AST as JSON and halt", AST_JSON_NOEXPAND),
+ ("ls", "List the symbols defined by a library crate", LS))
}
#[deriving(Clone, Eq)]
}
None::<d::PpMode> => {/* continue */ }
}
- let ls = matches.opt_present("ls");
- if ls {
+
+ if r.contains(&~"ls") {
match input {
d::FileInput(ref ifile) => {
let mut stdout = io::stdout();
all:
$(RUSTC) foo.rs
- $(RUSTC) --ls $(TMPDIR)/foo
+ $(RUSTC) -Z ls $(TMPDIR)/foo
touch $(TMPDIR)/bar
- $(RUSTC) --ls $(TMPDIR)/bar
+ $(RUSTC) -Z ls $(TMPDIR)/bar