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

Is it possible to control where ocamlbuild outputs the binary symlink? #10

Closed
rgrinberg opened this issue Jun 21, 2015 · 2 comments
Closed

Comments

@rgrinberg
Copy link

For example, $ ocamlbuild program.native will output program.native in the cwd. Is it possible to tell ocamlbuild to create that symlink elsewhere? E.g. suppose that I have a binaries dir where I want the symlinks to be outputted.

@gasche
Copy link
Owner

gasche commented Jun 21, 2015

Not to my knowledge. Furthermore, the symlinking is rather fragile in the current implementation (there are bugs were sometimes simlink are not done; I would support reporting them and fixing them, but for now one cannot rely on symlinks always being present). I would recommend you to use -no-links and then create the links or copies manually (either in the Makefile or as an ocamlbuild rule; for example you could create a rule for a target foo.link that statically depends on foo and copies it wherever you prefer).

@rgrinberg
Copy link
Author

Thankfully, I've never encountered a bug in ocamlbuild's symlinking feature.

Thanks for letting me know that I'll have to do this manually. It's really not difficult anyway, I just wanted to avoid the possibility of duplicating an already existing feature.

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

No branches or pull requests

2 participants