-
Notifications
You must be signed in to change notification settings - Fork 20
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
bootstrap in bytecode-only platform #177
Conversation
suddenly obuild has no support for bytecode-only platforms this commit is the first step to have such support
Instead of from ocamlopt, which doesn't exist in bytecode-only platforms.
Hello, wouldn't it be possible to patch the existing bootstrap file instead of creating a new one? |
On Mon, 21 May 2018, 08:02 UnixJunkie, ***@***.***> wrote:
Hello, wouldn't it be possible to patch the existing bootstrap file
instead of creating a new one?
Hi. Yes. But if your intention is to keep it simple, I would suggest
replacing the bootstrap script with bootstrap-bytecode, because the
bytecode bootstrap binary will also work in native platforms. I can add a
condition to create the final binary as native if possible.
… |
It sounds reasonable to me. |
It should be good to go now. I've tested installing it with opam |
if @jeromemaloberti integrates this and tags a new obuild version, then the opam CI tests will test this with many different versions of the compiler (though I'm not sure if any of them is a bytecode-only compiler). |
BTW, before tagging a release, remember to update the version number in |
The script is fine, I didn't test it though, however the change in prog.ml means that obuild will not use ocamlopt when it is available. I would prefer that the configuration correctly uses the right compiler. |
@andyli , actually, could you try to change getOcamlOpt () in prog.ml line 35 to add "ocamlc" in the list ? |
I don't think my prog.ml change will affect using ocamlopt or not for actually building. That line is to call I do fix an unrelated minor issue in the additional commit. |
Yes, you're right. |
Yeah, I also considered making the default smart, but then I figured it could be done later. So, I kept this PR minimal. |
Is there any problem with this PR? It is incremental that shouldn't break anything but enabled building obuild in bytecode-only platforms. |
Sorry, I was on holiday, and I missed the latest commit. |
Hi Jerome, ping me if you create a new tag, I will update the opam package, as usual. |
andyli reminded that we need a new tag to publish the fix |
Based on the work in #173. Fixes #174.