mirror of
https://github.com/Zenithsiz/zbuild.git
synced 2026-02-03 14:10:02 +00:00
Optional dependency files now work as expected.
This commit is contained in:
parent
05adac62c7
commit
297731bd21
11
src/build.rs
11
src/build.rs
@ -476,10 +476,21 @@ impl<'s> Builder<'s> {
|
||||
// If the dependency if a dependency deps file or an output deps file (and exists), build it's dependencies too
|
||||
#[expect(clippy::wildcard_enum_match_arm, reason = "We only care about some variants")]
|
||||
let dep_deps = match &dep {
|
||||
// Non-optional we don't check if they exist, so that an error
|
||||
// pops up if they don't.
|
||||
Dep::File {
|
||||
file,
|
||||
is_deps_file: true,
|
||||
is_output: false,
|
||||
is_optional: false,
|
||||
..
|
||||
} |
|
||||
// For optional or output, we only include them if they exist
|
||||
Dep::File {
|
||||
file,
|
||||
is_deps_file: true,
|
||||
is_optional: true,
|
||||
exists: true,
|
||||
..
|
||||
} |
|
||||
Dep::File {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user