-
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
Can we specify the target (byte or native) of an executable or libarary ? #112
Comments
Yes for your first question, at configuration step: obuild configure --enable-executable-bytecode |
And unfortunately no, the oflags in X/obuild are for all targets, as far as I understand. |
X.obuild |
It can be useful to enforce it in the obuild file. For instance, it you do a js_of_ocaml library, the native version of the library cannot (and shouldn't) be built. |
I agree this is useful, in oasis, here are the three modes they support: |
Is it mandatory in oasis ? or is there a default value ? |
It's not mandatory. |
@gildor478 can you answer on that one? |
I would prefer the default for obuild to be best. |
Meaning of best:
Actually the default values are:
|
If not it would be good to have it.
In the same order of idea, can we specify flags for a specific target ? I know there is the
oflags
field (through it is not referenced in the documentation) but it would be interesting to have target specific flags too.The text was updated successfully, but these errors were encountered: