Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mlugg
Copy link
Member

@mlugg mlugg commented Mar 15, 2025

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

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: ziglang#22682
@mlugg mlugg requested a review from andrewrk March 15, 2025 10:00
@alexrp alexrp added this to the 0.14.1 milestone Mar 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

No compile errors with -fno-emit-bin if c files in the build
2 participants