Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/librustc/session/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -799,6 +799,8 @@ pub fn rustc_short_optgroups() -> Vec<RustcOptGroup> {
http://www.sourceware.org/autobook/
for details)",
"TRIPLE"),
opt::opt("", "dep-file", "Write dep-info output to <filename>",
"FILENAME"),
opt::multi("W", "warn", "Set lint warnings", "OPT"),
opt::multi("A", "allow", "Set lint allowed", "OPT"),
opt::multi("D", "deny", "Set lint denied", "OPT"),
Expand Down Expand Up @@ -1004,7 +1006,9 @@ pub fn build_session_options(matches: &getopts::Matches) -> Options {

let cfg = parse_cfgspecs(matches.opt_strs("cfg"));
let test = matches.opt_present("test");
let write_dependency_info = (output_types.contains(&OutputTypeDepInfo), None);
let dependency_info_file = matches.opt_str("dep-file").map(|f| { PathBuf::from(&f) });
let write_dependency_info = (output_types.contains(&OutputTypeDepInfo),
dependency_info_file);

let prints = matches.opt_strs("print").into_iter().map(|s| {
match &*s {
Expand Down