Skip to content

Commit 81ccfeb

Browse files
committed
[OCaml] Replace ctypes.foreign with ctypes in META file
ctypes.foreign is only necessary for tests. This change is mainly for the benefit of people packaging the OCaml bindings. Differential Revision: https://reviews.llvm.org/D157325
1 parent c782e34 commit 81ccfeb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

llvm/bindings/ocaml/llvm/META.llvm.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ package "bitwriter" (
3030
)
3131

3232
package "executionengine" (
33-
requires = "llvm,llvm.target,ctypes.foreign"
33+
requires = "llvm,llvm.target,ctypes"
3434
version = "@PACKAGE_VERSION@"
3535
description = "JIT and Interpreter for LLVM"
3636
archive(byte) = "llvm_executionengine.cma"

llvm/test/Bindings/OCaml/executionengine.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
(* RUN: rm -rf %t && mkdir -p %t && cp %s %t/executionengine.ml
2-
* RUN: %ocamlc -g -w +A -thread -package llvm.executionengine -linkpkg %t/executionengine.ml -o %t/executable
2+
* RUN: %ocamlc -g -w +A -thread -package ctypes.foreign,llvm.executionengine -linkpkg %t/executionengine.ml -o %t/executable
33
* RUN: %t/executable
4-
* RUN: %ocamlopt -g -w +A -thread -package llvm.executionengine -linkpkg %t/executionengine.ml -o %t/executable
4+
* RUN: %ocamlopt -g -w +A -thread -package ctypes.foreign,llvm.executionengine -linkpkg %t/executionengine.ml -o %t/executable
55
* RUN: %t/executable
66
* REQUIRES: native
77
* XFAIL: vg_leak

0 commit comments

Comments
 (0)