# zig cc: support reading from non-files · gitcafe/zig

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

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

Visibility: public

Requested revision: 2e692312f104e1e5533c9f389d73488ea4a1ef68

Requested commit: 2e692312f104e1e5533c9f389d73488ea4a1ef68

Commit: 2e692312f104e1e5533c9f389d73488ea4a1ef68

Tree: 41c075be8388dc374bfd2f01973a6f8dfb612939

Author: Motiejus Jakštys

Committer: Andrew Kelley

## Message

```
zig cc: support reading from non-files

    echo 'some C program' | $CC -x c -

Is a common pattern to test for compiler or linker features. This patch
adds support for reading from non-regular files.

This will make at least one more Go test to pass.

```

## Parents

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

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