summaryrefslogtreecommitdiffstats
path: root/crates/driver/src/driver.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/driver/src/driver.rs')
-rw-r--r--crates/driver/src/driver.rs10
1 files changed, 6 insertions, 4 deletions
diff --git a/crates/driver/src/driver.rs b/crates/driver/src/driver.rs
index f43f8e8..683e111 100644
--- a/crates/driver/src/driver.rs
+++ b/crates/driver/src/driver.rs
@@ -268,10 +268,12 @@ impl<'ctx> Driver<'ctx> {
.output
.iter()
.map(|(name, Output { path, .. })| {
- (
- name.clone(),
- path.as_ref().map(String::as_str).unwrap_or(".").to_string(),
- )
+ let output_path = if let Some(path) = path {
+ paths::join(&[paths::TASK_DESTDIR, path])
+ } else {
+ paths::TASK_DESTDIR.to_string()
+ };
+ (name.clone(), output_path)
})
.collect();