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

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

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

Visibility: public

Requested revision: 9f235a105b29c6f1c0c773f66c40e7ee655da559

Requested commit: 9f235a105b29c6f1c0c773f66c40e7ee655da559

Commit: 9f235a105b29c6f1c0c773f66c40e7ee655da559

Tree: 7cf5939a5b39ea6b75f54b4b06e36819972b97ef

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

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

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