search for: use_llvm_bitwriter

Displaying 1 result from an estimated 1 matches for "use_llvm_bitwriter".

2010 Jun 27
0
[LLVMdev] ocaml bindings + ocamlbuild problem
...cy on Unix, so it doesn't compile. Minimal case: (* FILE: minimal.ml *) let main () = let m = Llvm.create_module (Llvm.global_context ()) "test" in ignore (Llvm_bitwriter.output_bitcode stdout m) ;; main () (* FILE: _tags *) <*.{byte,native}>: g++, use_unix, use_llvm, use_llvm_bitwriter (* FILE: myocamlbuild.ml *) open Ocamlbuild_plugin;; ocaml_lib ~extern:true "llvm";; ocaml_lib ~extern:true "llvm_bitwriter";; flag ["link"; "ocaml"; "g++"] (S[A"-cc"; A"g++"]);; I try to compile with the command line ocaml...