let cfg = interface::parse_cfgspecs(matches.opt_strs("cfg"));
let (odir, ofile) = make_output(&matches);
- let temps_dir = make_temps_dir(&matches);
let mut config = interface::Config {
opts: sopts,
crate_cfg: cfg,
input_path: None,
output_file: ofile,
output_dir: odir,
- temps_dir,
file_loader,
diagnostic_output,
stderr: None,
(odir, ofile)
}
-// Extract temporary directory from matches.
-fn make_temps_dir(matches: &getopts::Matches) -> Option<PathBuf> {
- matches.opt_str("temps-dir").map(|o| PathBuf::from(&o))
-}
-
// Extract input (string or file and optional path) from matches.
fn make_input(
error_format: ErrorOutputType,