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
ocamlbuild doesn't use build directory properly #4387
Comments
Comment author: ertai I cannot reproduce the bug (at least with the last version). Can you reproduce it on a tiny example? Do you have a plugin? |
Comment author: rbornat I don't have a plugin, so far as I know. (Actually I don't know what you are asking). Here's a little terminal log: nothing happens in the second build, and the main.native in _buildppc has the wrong architecture. After a -clean I get the right effect. [Richard-Bornats-MacBook: ./_buildi386: ./_buildppc: |
Comment author: ertai Ok, I got it! Thats the `link' feature that is mess up the whole thing. As a workaround you can use the -no-links option to avoid creating these stupid links. I've also fixed in CVS by automatically put -no-links when -build-dir is set. |
Original bug ID: 4387
Reporter: rbornat
Assigned to: ertai
Status: closed (set by @xavierleroy on 2011-05-29T10:20:07Z)
Resolution: fixed
Priority: normal
Severity: minor
Version: 3.10.0
Fixed in version: 3.11.2+dev
Category: -for ocamlbuild use https://github.com/ocaml/ocamlbuild/issues
Monitored by: rbornat
Bug description
I try to use ocamlbuild to make two versions of an OCaml program. The two commands are
ocamlbuild -build-dir _buildi386 -lib unix main.native
ocamlbuild -build-dir _buildppc -lib unix -ocamlopt '/usr/local/bin/ocamloptppc -ccopt "-arch ppc" -nostdlib -I /usr/local/lib/ocamlppc' main.native
To make the second work, I must do ocamlbuild -clean between them. Without that, the second compilation terminates immediately without doing any work. I can't see what's being recorded to stop the compilations being independent.
The text was updated successfully, but these errors were encountered: