[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)
commitb4d023aafe70ffaae8b5e8695ed0d5b4b51c2aa4
tree8f3250122b2568548deb45c0e024309a04250b3f
parent686e1571765773c8ac18ada098723cbfc379399c
[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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@220828 91177308-0d34-0410-b5e6-96231b3b80d8
16 files changed:
test/Bindings/Ocaml/analysis.ml
test/Bindings/Ocaml/bitreader.ml
test/Bindings/Ocaml/bitwriter.ml
test/Bindings/Ocaml/executionengine.ml
test/Bindings/Ocaml/ext_exc.ml
test/Bindings/Ocaml/ipo_opts.ml
test/Bindings/Ocaml/irreader.ml
test/Bindings/Ocaml/linker.ml
test/Bindings/Ocaml/passmgr_builder.ml
test/Bindings/Ocaml/scalar_opts.ml
test/Bindings/Ocaml/target.ml
test/Bindings/Ocaml/vectorize_opts.ml
test/Bindings/Ocaml/vmcore.ml
test/Makefile
test/lit.cfg
test/lit.site.cfg.in