Skip to content

Conversation

@mlugg
Copy link
Member

@mlugg mlugg commented May 22, 2025

The doc comment here agreed with the implementation, but not with any Step which populates a GeneratedFile, where they are treated as cwd-relative. This is the obvious correct choice, because these paths usually come from joining onto a cache root, and those are cwd-relative if not absolute.

This was a pre-existing bug, but #23836 caused it to trigger more often, because the compiler now commonly passes the local cache directory to the build runner process as a relative path where it was previously an absolute path.

Resolves: #23954

The doc comment here agreed with the implementation, but not with *any*
`Step` which populates a `GeneratedFile`, where they are treated as
cwd-relative. This is the obvious correct choice, because these paths
usually come from joining onto a cache root, and those are cwd-relative
if not absolute.

This was a pre-existing bug, but ziglang#23836 caused it to trigger more often,
because the compiler now commonly passes the local cache directory to
the build runner process as a relative path where it was previously an
absolute path.

Resolves: ziglang#23954
@mlugg mlugg enabled auto-merge (rebase) May 22, 2025 02:30
@mlugg mlugg merged commit 9a3540d into ziglang:master May 22, 2025
9 checks passed
@mlugg mlugg deleted the build-generatedfile-cwd-relative branch May 23, 2025 15:45
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.

C Header from dependency not found

1 participant