# zig cc: expose clang precompiled C header support · gitcafe/zig

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

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

Visibility: public

Requested revision: 1a98fcd00abb7266418532a103214467497d58c6

Requested commit: 1a98fcd00abb7266418532a103214467497d58c6

Commit: 1a98fcd00abb7266418532a103214467497d58c6

Tree: 39254a968f9777852e246ec5c803983656c479e4

Author: Xavier Bouchoux

Committer: Andrew Kelley

## Message

```
zig cc: expose clang precompiled C header support

see https://releases.llvm.org/17.0.1/tools/clang/docs/UsersManual.html#generating-a-pch-file

syntax examples:
`zig cc -x c-header test.h -o test.pch`
`zig cc -include-pch test.pch main.c`

`zig c++ -x c++-header test.h -o test.pch`
`zig c++ -include-pch test.pch main.cpp`

```

## Parents

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

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