Skip to content

feat: multiple foreign language support #11849

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

Draft
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

Alizter
Copy link
Collaborator

@Alizter Alizter commented May 24, 2025

In this PR we add support for multiple foreign languages to be specified in a single foreign_stubs field or foreign_library. These fields/stanzas now take a languages field to allow manual specification of languages or alternatively can be omitted defaulting to automatic language detection.

We also add support for Assembly language.

I'll mark this PR as draft for the time being so that I can separate out the commits and get them merged separately. This PR will be undrafted when the main feature is ready to be reviewed.

Alizter added 12 commits May 24, 2025 13:20
We make foreign_language.t a polymorphic variant to allow for more fine
grained casing in the foreign library rules and also to allow for
shorter names.

We also cleanup some dead code.

Signed-off-by: Ali Caglayan <[email protected]>
Signed-off-by: Ali Caglayan <[email protected]>
Alizter added a commit to Alizter/dune that referenced this pull request May 25, 2025
We make foreign_language.t a polymorphic variant to allow for more fine
grained casing. Later, as outlined in ocaml#11849, we will add more foreign
languages, so it is important that we can refer to a subset of the
foreign languages for later language specific rules.

We also do some routine cleanup and dead code removal.

Signed-off-by: Ali Caglayan <[email protected]>
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