You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original bug ID: 6300 Reporter: nbb Assigned to:@gasche Status: closed (set by @xavierleroy on 2016-12-07T10:34:31Z) Resolution: fixed Priority: normal Severity: minor OS: OS X OS Version: 10.9 Target version: 4.02.1+dev Fixed in version: 4.02.0+dev Category: -for ocamlbuild use https://github.com/ocaml/ocamlbuild/issues Monitored by:@gasche
Bug description
it appears to be impossible to specify for example ocamlcp as the bytecode compiler when also ocamlfind is used
"ocamlbuild -use-ocamlfind -ocamlc FOO" now invokes "ocamlfind FOO" instead of "ocamlfind ocamlc" -- similarly for all -ocamlfoo flags that correspond to ocamlfind subcommands.
There is a subtlety in the timing of when various options are taken into accounts to set these things -- read the commit message for more details. The take-away is that if you want to set use_ocamlfind through the myocamlbuild.ml rather than through the command-line, you should do this at the Before_options dispatch time rather than later. This means that users may be able to override this setting using -no-ocamlfind (the plugin cannot override the command-line option if it's passed), but I don't think that is problematic.
Original bug ID: 6300
Reporter: nbb
Assigned to: @gasche
Status: closed (set by @xavierleroy on 2016-12-07T10:34:31Z)
Resolution: fixed
Priority: normal
Severity: minor
OS: OS X
OS Version: 10.9
Target version: 4.02.1+dev
Fixed in version: 4.02.0+dev
Category: -for ocamlbuild use https://github.com/ocaml/ocamlbuild/issues
Monitored by: @gasche
Bug description
it appears to be impossible to specify for example ocamlcp as the bytecode compiler when also ocamlfind is used
Steps to reproduce
cat "let _ = 3" > test.ml
ocamlbuild -ocamlc ocamlcp test.byte # succeeds
ocamlbuild -use-ocamlfind -ocamlc ocamlcp test.byte
compiles silently with ocamlc instead of ocamlcp
Additional information
in the trivial test, findlib is not needed, but in the real example it was.
The text was updated successfully, but these errors were encountered: