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

fix: allow different foreign sources for exes #10677

Merged
merged 1 commit into from
Jun 28, 2024
Merged

Conversation

emillon
Copy link
Collaborator

@emillon emillon commented Jun 27, 2024

Executables with same name can have different (foreign_stubs) attached to them, as long as there's no name collision.

Fixes #10675

@emillon emillon requested a review from rgrinberg June 27, 2024 15:48
@emillon
Copy link
Collaborator Author

emillon commented Jun 27, 2024

I'm not too sure about whether that's a fix or a new feature. It might be better to evaluate (enabled_if) earlier if we want to go there. WDYT @rgrinberg ?

Copy link
Member

@rgrinberg rgrinberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this change break existing builds? I think not, so calling it a fix and not versioning is fine.

Making it work with enabled_if would be cool as well.

@emillon
Copy link
Collaborator Author

emillon commented Jun 28, 2024

After discussing on the original report, they don't rely on this behavior so I'll go with a more conservative fix and just a better error message.

When executables with the same name have different `(foreign_stubs)`
attached, we would crash.

Fixes ocaml#10675

Signed-off-by: Etienne Millon <[email protected]>
@emillon emillon merged commit ab3b66c into ocaml:main Jun 28, 2024
28 checks passed
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.

Incompatibility between enabled_if and foreign_stubs?
2 participants