# Zcu: don't tell linkers about exports if there are compile errors · gitcafe/zig

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

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

Visibility: public

Requested revision: 8adabaa4ed2321882e2ef04ebb2d9b621805aac2

Requested commit: 8adabaa4ed2321882e2ef04ebb2d9b621805aac2

Commit: 8adabaa4ed2321882e2ef04ebb2d9b621805aac2

Tree: a1ff7a83fbfcd976d17b1f19cd1e848c08da0793

Author: mlugg

Committer: Matthew Lugg

## Message

```
Zcu: don't tell linkers about exports if there are compile errors

In the best case, this is redundant work, because we aren't actually
going to emit a working binary this update. In the worst case, it causes
bugs because the linker may not have *seen* the thing being exported due
to the compile errors.

Resolves: #24417

```

## Parents

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

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