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

Hygiene tests: don't duplicate compilation units #52

Merged
merged 2 commits into from
Dec 14, 2022

Conversation

lthls
Copy link
Contributor

@lthls lthls commented Jun 29, 2022

This test added in #43 creates a binary with conflicting compilation units. In particular, OpamBaseParser is both present in the opamFileFormat library and on the command line, and it is only by sheer luck that the compiler manages to not complain about that (Flambda 2 does actually complain about that).

My proposed fix is to use a different name, but my reading of the dune file also suggests that maybe linking with the library wasn't intended.

We're going to have to patch Flambda 2 anyway, as the same problems arise in more complicated situations, but I think this PR is a good improvement on its own.

@lthls
Copy link
Contributor Author

lthls commented Jun 29, 2022

(Cc @dra27, which is the original author for this test.)

@dra27
Copy link
Member

dra27 commented Jun 29, 2022

Thanks! There is indeed no need for the libraries field at all (I double-checked locally) - it's copying the two source files it needs.

@lthls
Copy link
Contributor Author

lthls commented Jun 29, 2022

Ok, I updated the PR to remove the libraries field (reverting the previous changes).

@rjbou rjbou merged commit 0e2ac6c into ocaml:master Dec 14, 2022
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.

3 participants