[OCaml] PR9719, PR14727: Make tests run without ocamlopt.
authorPeter Zotov <whitequark@whitequark.org>
Tue, 28 Oct 2014 22:39:36 +0000 (22:39 +0000)
committerPeter Zotov <whitequark@whitequark.org>
Tue, 28 Oct 2014 22:39:36 +0000 (22:39 +0000)
commitdacfc64b572bed8c40deefc6459519aea2caf008
tree9aee3e39e77abdb857a2b20612c7dcd8423136e8
parent54ce2958490fb41d5c8522e176e5bead0d0f310e
[OCaml] PR9719, PR14727: Make tests run without ocamlopt.

Previously, tests hardcoded ocamlopt and cmxa, which broke builds on
machines without ocamlopt. Instead, they now fall back to ocamlc.

As a side effect this fixes PR14727, which was caused by a crude hack
that replaced gcc with g++ everywhere in the ocamlopt native compiler
path and passes it back using -cc. Now the tests use the same
technique as META, i.e. -cclib -lstdc++. It might be more fragile
than using g++ explicitly, but it will break when the installed
package will also break, which is good.

llvm-svn: 220828
16 files changed:
llvm/test/Bindings/Ocaml/analysis.ml
llvm/test/Bindings/Ocaml/bitreader.ml
llvm/test/Bindings/Ocaml/bitwriter.ml
llvm/test/Bindings/Ocaml/executionengine.ml
llvm/test/Bindings/Ocaml/ext_exc.ml
llvm/test/Bindings/Ocaml/ipo_opts.ml
llvm/test/Bindings/Ocaml/irreader.ml
llvm/test/Bindings/Ocaml/linker.ml
llvm/test/Bindings/Ocaml/passmgr_builder.ml
llvm/test/Bindings/Ocaml/scalar_opts.ml
llvm/test/Bindings/Ocaml/target.ml
llvm/test/Bindings/Ocaml/vectorize_opts.ml
llvm/test/Bindings/Ocaml/vmcore.ml
llvm/test/Makefile
llvm/test/lit.cfg
llvm/test/lit.site.cfg.in