Skip to content

Commit

Permalink
feat: expand rules::gcc_deps (#592)
Browse files Browse the repository at this point in the history
  • Loading branch information
kaspar030 authored Dec 23, 2024
2 parents b6f1f82 + fe7581d commit 8639590
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/ninja/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,12 @@ impl<'a> NinjaRule<'a> {
let expanded = nested_env::expand_eval(&self.command, env, IfMissing::Empty)?;
command.push_str(&expanded);
self.command = command.into();

if let NinjaRuleDeps::GCC(s) = self.deps {
let expanded = nested_env::expand_eval(&s, env, IfMissing::Empty)?;
self.deps = NinjaRuleDeps::GCC(expanded)
}

Ok(self)
}
}
Expand Down

0 comments on commit 8639590

Please sign in to comment.