Skip to content

halide-cache: Add --base-dir option#2

Open
Osse wants to merge 1 commit intozivid:masterfrom
Osse:relative
Open

halide-cache: Add --base-dir option#2
Osse wants to merge 1 commit intozivid:masterfrom
Osse:relative

Conversation

@Osse
Copy link
Copy Markdown
Contributor

@Osse Osse commented Mar 26, 2026

Make the paths to generated files and dependencies relative to the value
of this argument. This makes it possible to share the halide cache
between repos or worktrees. If a path cannot be made relative then it
remains unchanged. Currently it is an Option to avoid having
to make changes to the call site and if it is None then the path to the
repository is used. In the future we probably want to make this more
robust.

Make the paths to generated files and dependencies relative to the value
of this argument. This makes it possible to share the halide cache
between repos or worktrees. If a path cannot be made relative then it
remains unchanged. Currently it is an Option<PathBuf> to avoid having
to make changes to the call site and if it is None then the path to the
repository is used. In the future we probably want to make this more
robust.
@Osse Osse changed the title relative halide-cache: Add --base-dir option Mar 26, 2026
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