[PR11606] ocaml bindings tests produce binaries in source dir
[oota-llvm.git] / test / Bindings / Ocaml / executionengine.ml
index f7a49bb284c0c4364b438d4db4a3939c16900872..c33da626cffb725106ea32b1da1cadcb3e4636c4 100644 (file)
@@ -1,4 +1,7 @@
-(* RUN: %ocamlopt -warn-error A llvm.cmxa llvm_target.cmxa llvm_executionengine.cmxa %s -o %t
+(* RUN: rm -rf %t.builddir
+ * RUN: mkdir -p %t.builddir
+ * RUN: cp %s %t.builddir
+ * RUN: %ocamlopt -warn-error A llvm.cmxa llvm_target.cmxa llvm_executionengine.cmxa %t.builddir/executionengine.ml -o %t
  * RUN: %t
  * XFAIL: vg_leak
  *)