diff options
| author | Peter Zotov <whitequark@whitequark.org> | 2014-10-28 22:39:36 +0000 |
|---|---|---|
| committer | Peter Zotov <whitequark@whitequark.org> | 2014-10-28 22:39:36 +0000 |
| commit | dacfc64b572bed8c40deefc6459519aea2caf008 (patch) | |
| tree | 9aee3e39e77abdb857a2b20612c7dcd8423136e8 /llvm/test/Bindings/Ocaml/passmgr_builder.ml | |
| parent | 54ce2958490fb41d5c8522e176e5bead0d0f310e (diff) | |
| download | bcm5719-llvm-dacfc64b572bed8c40deefc6459519aea2caf008.tar.gz bcm5719-llvm-dacfc64b572bed8c40deefc6459519aea2caf008.zip | |
[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
Diffstat (limited to 'llvm/test/Bindings/Ocaml/passmgr_builder.ml')
| -rw-r--r-- | llvm/test/Bindings/Ocaml/passmgr_builder.ml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/test/Bindings/Ocaml/passmgr_builder.ml b/llvm/test/Bindings/Ocaml/passmgr_builder.ml index 1a3102f70a3..cd431fa5580 100644 --- a/llvm/test/Bindings/Ocaml/passmgr_builder.ml +++ b/llvm/test/Bindings/Ocaml/passmgr_builder.ml @@ -1,7 +1,7 @@ (* RUN: rm -rf %t.builddir * RUN: mkdir -p %t.builddir * RUN: cp %s %t.builddir - * RUN: %ocamlopt -warn-error A llvm.cmxa llvm_passmgr_builder.cmxa %t.builddir/passmgr_builder.ml -o %t + * RUN: %ocamlcomp -warn-error A llvm.%cma llvm_passmgr_builder.%cma %t.builddir/passmgr_builder.ml -o %t * RUN: %t %t.bc * XFAIL: vg_leak *) |

