# std.Build.Compile: handle modules sans root source files · gitcafe/zig

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

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

Visibility: public

Requested revision: 2dea37545046e1a7e472e52c8c110ee6f32842d7

Requested commit: 2dea37545046e1a7e472e52c8c110ee6f32842d7

Commit: 2dea37545046e1a7e472e52c8c110ee6f32842d7

Tree: 4fd0545ed62acb08f84554e5da441a23022ca170

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
std.Build.Compile: handle modules sans root source files

Uses the new `-M[name][=src]` CLI syntax to omit the source when the
module does not have a zig root source file.

Only some kinds of link objects imply that this should happen.

```

## Parents

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

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