maybe_sysroot: maybe_sysroot.clone().or_else(
|| Some(env::current_exe().unwrap().parent().unwrap().parent().unwrap().to_path_buf())),
search_paths: libs.clone(),
- crate_types: vec![config::CrateTypeDylib],
+ crate_types: vec![config::CrateType::Dylib],
cg: cg.clone(),
externs: externs.clone(),
unstable_features: UnstableFeatures::from_environment(),
..config::basic_debugging_options()
},
edition,
- ..config::basic_options().clone()
+ ..config::Options::default()
};
driver::spawn_thread_pool(sessopts, |sessopts| {
let codemap = Lrc::new(CodeMap::new(sessopts.file_path_mapping()));
maybe_sysroot: maybe_sysroot.or_else(
|| Some(env::current_exe().unwrap().parent().unwrap().parent().unwrap().to_path_buf())),
search_paths: libs,
- crate_types: vec![config::CrateTypeExecutable],
+ crate_types: vec![config::CrateType::Executable],
output_types: outputs,
externs,
cg: config::CodegenOptions {
..config::basic_debugging_options()
},
edition,
- ..config::basic_options().clone()
+ ..config::Options::default()
};
// Shuffle around a few input and output handles here. We're going to pass