# build system: fix missing step dependencies on lib · gitcafe/zig

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

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

Visibility: public

Requested revision: 537e2808e04fc34bb2015433895a57c15118eb28

Requested commit: 537e2808e04fc34bb2015433895a57c15118eb28

Commit: 537e2808e04fc34bb2015433895a57c15118eb28

Tree: 028b2081c157ede4a4fb00c7f75b05d6a6c4eea9

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
build system: fix missing step dependencies on lib

When depending on a module that depends on a static library, there was a
missing step dependency on the static library, which caused a compile
error due to missing header file.

This fixes the problem by adding the proper step dependencies.

Reviewing this code, I'm starting to wonder if it might be simpler to
have Module instances create dummy Step objects to better model
dependencies and dependees, rather than trying to maintain this graph
without an actual node. That would be an improvement for a future
commit.

```

## Parents

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

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