diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2021-10-28 22:30:16 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2021-10-28 23:28:04 +0200 |
commit | fb6fa0720400d8fa7d9ae29d02c2db58a57a6c8a (patch) | |
tree | 43d984227f1e10bb327ff2a37c0f0ed656eaf559 /crates/driver/src/driver.rs | |
parent | 00f1c87d3d841f5b24c89d370868cf0306896877 (diff) | |
download | rebel-fb6fa0720400d8fa7d9ae29d02c2db58a57a6c8a.tar rebel-fb6fa0720400d8fa7d9ae29d02c2db58a57a6c8a.zip |
Split paths module into driver and runner parts
There are still a few remaining paths that are defined in both driver
and runner.
Diffstat (limited to 'crates/driver/src/driver.rs')
-rw-r--r-- | crates/driver/src/driver.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crates/driver/src/driver.rs b/crates/driver/src/driver.rs index 683e111..75aff02 100644 --- a/crates/driver/src/driver.rs +++ b/crates/driver/src/driver.rs @@ -7,11 +7,11 @@ use indoc::indoc; use nix::poll; use common::{error::*, string_hash::*, types::*}; -use runner::{paths, Runner}; +use runner::Runner; use crate::{ context::{Context, TaskRef}, - resolve, + paths, resolve, task::*, template, }; @@ -88,7 +88,7 @@ impl<'ctx> CompletionState<'ctx> { .filter_map(|dep| self.tasks_done[&dep.task].outputs.get(dep.output)) .map(|&output| Dependency::Task { output, - path: paths::abs(paths::TASK_SYSROOT), + path: paths::TASK_SYSROOT.to_string(), }), ) .collect()) @@ -269,7 +269,7 @@ impl<'ctx> Driver<'ctx> { .iter() .map(|(name, Output { path, .. })| { let output_path = if let Some(path) = path { - paths::join(&[paths::TASK_DESTDIR, path]) + format!("{}/{}", paths::TASK_DESTDIR, path) } else { paths::TASK_DESTDIR.to_string() }; |