}
}
- pub fn export_dir(&self, unit: &Unit<'a>) -> Option<PathBuf> {
- if self.roots.contains(unit) {
- self.export_dir.clone()
- } else {
- None
- }
+ pub fn export_dir(&self) -> Option<PathBuf> {
+ self.export_dir.clone()
}
pub fn pkg_dir(&self, unit: &Unit<'a>) -> String {
) -> CargoResult<Work> {
let bcx = cx.bcx;
let outputs = cx.outputs(unit)?;
- let export_dir = cx.files().export_dir(unit);
+ let export_dir = cx.files().export_dir();
let package_id = unit.pkg.package_id().clone();
let target = unit.target.clone();
let profile = unit.profile;