Skip to content

Draft: A backend for each file instead of having a enabled backends for all#1023

Draft
Arnaud-Bihan wants to merge 6 commits into
CatalaLang:masterfrom
functori:arnaud@functori@backend_for_each_file
Draft

Draft: A backend for each file instead of having a enabled backends for all#1023
Arnaud-Bihan wants to merge 6 commits into
CatalaLang:masterfrom
functori:arnaud@functori@backend_for_each_file

Conversation

@Arnaud-Bihan

@Arnaud-Bihan Arnaud-Bihan commented Apr 30, 2026

Copy link
Copy Markdown
Contributor

When creating the clerk.ninja file to execute commands, clerk_rules retrieve the enabled backend by concatenation of all possible bakcends for all backends.

But this lead to an issue on external file for example, if I create a target A in OCaml with an external file (written in OCaml) and a target B in Java, Clerk will expect my external file from the target A to have an implementation in Java because the enabled_backends are OCaml and Java for all the files.

This is an attempt not finished to fix that (this is clearly not optimal the way I did it for now)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

2 participants