ocamlbuild
ocamlbuild copied to clipboard
summarise the `-package` arguments
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...
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.