Skip to content

Use std.Build.LazyPath in build.zig files #392

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

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

toivosnare
Copy link

This way auto-generated files in the Zig build cache can be passed in. There is an automatic conversion from a string to LazyPath so this shouldn't break anything.

@Ivan-Velickovic
Copy link
Collaborator

Makes sense to use LazyPath now, I think when I originally made these it wasn't an option.

One comment I have is about the calls to getPath3, is that the only way to get the actual path of a LazyPath? The Zig stdlib docs say only to use that during the make phase.

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.

2 participants