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

oasis should warn on potential overwrite of .o file #114

Open
ygrek opened this issue Jul 17, 2017 · 0 comments
Open

oasis should warn on potential overwrite of .o file #114

ygrek opened this issue Jul 17, 2017 · 0 comments
Assignees

Comments

@ygrek
Copy link

ygrek commented Jul 17, 2017

Common (and very confusing) pitfall with bindings is having module.ml and module.c in same directory (ocaml and C side of bindings respectively) - which results in object file having same name for both inputs, and getting overwritten by ocamlbuild during build. The library will compile fine, but fail when linked with final program, because only one .o is linked.
Arguably this should be a warning/fix in ocamlbuild too, but warning in oasis would be very nice too and seems easier to implement.

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

No branches or pull requests

2 participants