ocamlbuild icon indicating copy to clipboard operation
ocamlbuild copied to clipboard

summarise the `-package` arguments

Open samoht opened this issue 10 years ago • 1 comments

Currently, using ocamlbuild in conjunction with ocamlfind is rather verbose and produces:

ocamlfind ocamlopt -package foo -package bar -package ...

What is the best way to instead produce:

ocamlfind ocamlopt -package foo,bar,... 

After a quick look at the source-code it seems that a post-processing step would be the simplest thing to do, but before digging any further it would be helpful to have an opinion on this.

Ha and this is really useful on Cygwin, when the command-line length is a precious resource...

samoht avatar Feb 09 '16 15:02 samoht

I see no reasonable way to do this at the OCamlbuild level without distorting the tool's design. I would be more interested in pushing general solutions to the command-line-length issue, such as MPR#7050.

gasche avatar Feb 09 '16 16:02 gasche