# zig cc: handle the \-r flag · gitcafe/zig

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

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

Visibility: public

Requested revision: c22a30ac99b9a2b92d9a8e926b9bf0c9dbc3d14e

Requested commit: c22a30ac99b9a2b92d9a8e926b9bf0c9dbc3d14e

Commit: c22a30ac99b9a2b92d9a8e926b9bf0c9dbc3d14e

Tree: 7fd19495c2ba91cc768b4a3aca8c9ff625b40a7d

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
zig cc: handle the -r flag

This makes -r treated the same as -c which is to output an object file.
Zig's ELF linker code already handles multiple object files into an
object file with the -r flag to LLD.

closes #11683

```

## Parents

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

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