-
Notifications
You must be signed in to change notification settings - Fork 415
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 executable compilation with select #2506
Conversation
Not fixed yet. I'm not able to find the best way to fix it. |
Did you forget to commit the entire test? I don't see a dune file. |
It is an old tests that was just in 1.0 that I bump in 2.0 to see the problem. |
Ah I see. I suggest that we test both cases however. As for a fix, a real simple approach would be to just make this behavior controllable via a flag in |
We know the selected |
Yeah that should work too. I'm still wondering how those extra sources are being compiled, the conditionally selected sources aren't actual modules. |
948d64a
to
cd2c445
Compare
It works. I think it is safe to do the modification for any dune version. |
The source files used in select are removed from the list of files in the directory. Signed-off-by: François Bobot <francois.bobot@cea.fr>
cd2c445
to
e8db51d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Thanks Francois.
Since #2268 the compilation of an executable with a select is broken because the not selected
.ml
are still compiled.