# link: mark prelink tasks as procesed under \`\-fno-emit-bin\` · gitcafe/zig

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

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

Visibility: public

Requested revision: c71b78eb0196cbad9fbb01ce9137d09796b48726

Requested commit: c71b78eb0196cbad9fbb01ce9137d09796b48726

Commit: c71b78eb0196cbad9fbb01ce9137d09796b48726

Tree: fc0358a06b60dc96f002cb518a780095b7940fa6

Author: mlugg

Committer: Andrew Kelley

## Message

```
link: mark prelink tasks as procesed under `-fno-emit-bin`

The old logic only decremented `remaining_prelink_tasks` if `bin_file`
was not `null`. This meant that on `-fno-emit-bin` builds with
registered prelink tasks (e.g. C source files), we exited from
`Compilation.performAllTheWorkInner` early, assuming a prelink error.

Instead, when `bin_file` is `null`, we still decrement
`remaining_prelink_tasks`; we just don't do any actual work.

Resolves: #22682

```

## Parents

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

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