# build: fix WriteFile and addCSourceFiles not adding LazyPath deps · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/d9f1a952b8b0e19aafcf568b35cc220adbb4a7b5)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: d9f1a952b8b0e19aafcf568b35cc220adbb4a7b5

Requested commit: d9f1a952b8b0e19aafcf568b35cc220adbb4a7b5

Commit: d9f1a952b8b0e19aafcf568b35cc220adbb4a7b5

Tree: d7333d6953a0fe37ac11b12a2456efebffd2a4c0

Author: Jonathan Marler

Committer: Andrew Kelley

## Message

```
build: fix WriteFile and addCSourceFiles not adding LazyPath deps

Adds a missing call to addLazyPathDependenciesOnly in
std.Build.Module.addCSourceFiles.  Also fixes an issue in
std.Build.Step.WriteFile where it wasn't updating all the GeneratedFile
instances for every directory.  To fix the second issue, I removed
all the GeneratedFile instances and now all files/directories reference
the steps main GeneratedFile via sub paths.

```

## Parents

- [b67caf72e31eefe08fe2dc8b17b4bca16e0e3cc6](https://git.cafe/gitcafe/zig/commit/b67caf72e31eefe08fe2dc8b17b4bca16e0e3cc6?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/d9f1a952b8b0e19aafcf568b35cc220adbb4a7b5?format=markdown)
