[llvm] 81ccfeb - [OCaml] Replace ctypes.foreign with ctypes in META file

Alan Hu via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 8 14:05:22 PDT 2023


Author: Alan Hu
Date: 2023-08-08T17:02:46-04:00
New Revision: 81ccfeb86afc13e1ef3d4872452c855060b8f67e

URL: https://github.com/llvm/llvm-project/commit/81ccfeb86afc13e1ef3d4872452c855060b8f67e
DIFF: https://github.com/llvm/llvm-project/commit/81ccfeb86afc13e1ef3d4872452c855060b8f67e.diff

LOG: [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

Added: 
    

Modified: 
    llvm/bindings/ocaml/llvm/META.llvm.in
    llvm/test/Bindings/OCaml/executionengine.ml

Removed: 
    


################################################################################
diff  --git a/llvm/bindings/ocaml/llvm/META.llvm.in b/llvm/bindings/ocaml/llvm/META.llvm.in
index 7c87039ea46546..fce97083257e64 100644
--- a/llvm/bindings/ocaml/llvm/META.llvm.in
+++ b/llvm/bindings/ocaml/llvm/META.llvm.in
@@ -30,7 +30,7 @@ package "bitwriter" (
 )
 
 package "executionengine" (
-    requires = "llvm,llvm.target,ctypes.foreign"
+    requires = "llvm,llvm.target,ctypes"
     version = "@PACKAGE_VERSION@"
     description = "JIT and Interpreter for LLVM"
     archive(byte) = "llvm_executionengine.cma"

diff  --git a/llvm/test/Bindings/OCaml/executionengine.ml b/llvm/test/Bindings/OCaml/executionengine.ml
index a127e7e14c71ac..ec4031faf9d9b3 100644
--- a/llvm/test/Bindings/OCaml/executionengine.ml
+++ b/llvm/test/Bindings/OCaml/executionengine.ml
@@ -1,7 +1,7 @@
 (* RUN: rm -rf %t && mkdir -p %t && cp %s %t/executionengine.ml
- * RUN: %ocamlc -g -w +A -thread -package llvm.executionengine -linkpkg %t/executionengine.ml -o %t/executable
+ * RUN: %ocamlc -g -w +A -thread -package ctypes.foreign,llvm.executionengine -linkpkg %t/executionengine.ml -o %t/executable
  * RUN: %t/executable
- * RUN: %ocamlopt -g -w +A -thread -package llvm.executionengine -linkpkg %t/executionengine.ml -o %t/executable
+ * RUN: %ocamlopt -g -w +A -thread -package ctypes.foreign,llvm.executionengine -linkpkg %t/executionengine.ml -o %t/executable
  * RUN: %t/executable
  * REQUIRES: native
  * XFAIL: vg_leak


        


More information about the llvm-commits mailing list