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

Build: Add option(LazyPath, ...) support #21380

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

Conversation

InKryption
Copy link
Contributor

Also adds support for []const LazyPath in a similar vein, and refactors a few other bits of code.

The main purpose of this addition is to enable passing LazyPaths from depender to dependency, ie say you generate a directory via some Run step, and you want to pass that as an argument to your dependency, which will use it as, say a search path for an executable, static resources, or what have you.

I've wanted/needed this on a few occasions. It can sort of be hacked in by exposing the functionality via @import("dep-name"), but it would be great to have this as a native capability.

Also adds support for `[]const LazyPath` in a similar vein, and
refactors a few other bits of code.
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.

1 participant