OCamlPro/typerex — pull request #45 by mcclurmc (2012-03-20 16:08:55+00:00)
Title: ocp-wrapper filters -ccopt properly

Before this patch, ocp-wrapper incorrectly handled the -ccopt command, and
would pass it on to ocp-type erroneously. We now filter this option.

Here is an example of a command that will fail:

$ ocp-ocamlopt.opt -ccopt -fPIC -I /usr/lib/ocaml/ test.ml

This will be translated to the following:

$ ocp-type -save-types -w -a -ccopt -I /usr/lib/ocaml/ test.ml

Notice that -ccopt remains, even though -fPIC was removed. Now -ccopt conflicts with -I, and ocp-type will report that it does not know what to do with /usr/lib/ocaml.

Signed-off-by: Mike McClurg