# zig objcopy: support the compiler protocol · gitcafe/zig

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

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

Visibility: public

Requested revision: a333bb91ffcf63fbe377ddc82fd7f1633e269430

Requested commit: a333bb91ffcf63fbe377ddc82fd7f1633e269430

Commit: a333bb91ffcf63fbe377ddc82fd7f1633e269430

Tree: 95ed82003498b27d49e5e865b1e75d1a0fc0c3ff

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
zig objcopy: support the compiler protocol

This commit extracts out server code into src/Server.zig and uses it
both in the main CLI as well as `zig objcopy`.

std.Build.ObjCopyStep now adds `--listen=-` to the CLI for `zig objcopy`
and observes the protocol for progress and other kinds of integrations.

This fixes the last two test failures of this branch when I run
`zig build test` locally.

```

## Parents

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

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