# zig build: add \-\-libc general option · gitcafe/zig

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

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

Visibility: public

Requested revision: 3e4f3a1924150e22e0ca87e906681ebadcf8433e

Requested commit: 3e4f3a1924150e22e0ca87e906681ebadcf8433e

Commit: 3e4f3a1924150e22e0ca87e906681ebadcf8433e

Tree: 340219e6781f88f6e20b195b8a0bfeeb76db50a2

Author: Isaac Freund

Committer: Isaac Freund

## Message

```
zig build: add --libc general option

This new option sets a default libc paths file to be used for all
LibExeObjSteps. Setting LibExeObjStep.libc_file overrides this default.

This is required to allow users to cross compile projects linking system
libraries without needing to patch the build.zig.

```

## Parents

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

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