ocamlbuild icon indicating copy to clipboard operation
ocamlbuild copied to clipboard

MPR#6099: Add ocamlbuild tags mirroring command line options

Open damiendoligez opened this issue 8 years ago • 3 comments

PR transferred from https://caml.inria.fr/mantis/view.php?id=6099 [original reporter: @danmey]

We should allow tags for ocamlbuild:

  pflag ["ocamlbuild"; "library"] "ocamlopt"
    (fun param -> S [A "-ocamlopt"; A param]);

and

<lib/*>: ocamlopt(arm-linux-gnueabi-ocamlopt)

damiendoligez avatar Mar 01 '17 15:03 damiendoligez

Triage: same issues as described in https://github.com/ocaml/ocamlbuild/issues/185#issuecomment-283486418.

whitequark avatar Mar 01 '17 22:03 whitequark

I think that we should be able to separate command-line options that have a global semantics on the ocamlbuild invocation, and cannot easily be turned into flags, and those that can. In this example, we could give a local semantics to the ocamlc option if we wanted to (and it would be natural to cascade, a tag setting would override an invocation-global setting), but it seems tricky to implement. I think that a tag for lflag, etc. would be more robust and easier to implement (but then it is in competition with command-line-option-specific tags).

gasche avatar Mar 03 '17 15:03 gasche

I agree wrt lflag and friends.

whitequark avatar Mar 03 '17 21:03 whitequark