-
Notifications
You must be signed in to change notification settings - Fork 82
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
Choosing flambda optimizations via ocamlbuild #67
Comments
We haven't added yet to the set of base flags yet. This should be rather easy, just adding flags to Note that these flags will only work on OCaml compilers that have been configured (at compiler-build time) to use flambda. |
I am preparing a PR for the flambda optimization flags. @gasche: Can (and should?) ocamlbuild detect whether the underlying ocaml compiler includes flambda? Adding optimization flags in a non-flambda compiler results in a warning message... |
The names are fine with me. Are you planning to also support the tuning options documented in the manual? I think we could just pass the flags to the underlying compiler, and let users handle warnings if they do the wrong thing. |
Which other tuning options should we support? I will try to incorporate them. Personally, I think the optimization levels (-O) and the inlining heuristic (-inline) are the most crucial ones. Please let me know if I should include, e.g. |
All of them. There is no reason not to expose flags at the ocamlbuild level. |
I have a first draft for supporting the flambda options ready in #68. |
Is there any way of enabling the flambda optimization (e.g. -O3) in a build process with ocamlbuild?
The text was updated successfully, but these errors were encountered: