[OCaml] Build stub OCaml libraries for all configured targets
authorPeter Zotov <whitequark@whitequark.org>
Thu, 14 Nov 2013 06:34:21 +0000 (06:34 +0000)
committerPeter Zotov <whitequark@whitequark.org>
Thu, 14 Nov 2013 06:34:21 +0000 (06:34 +0000)
commit2bdf881ee403c0493acdb3253bc697f3bd914cca
tree12257ea158a8ec31b4af2f2fbfa19b32f7fce5c4
parenta69773cead6dea09ade34342eafacf848ec41367
[OCaml] Build stub OCaml libraries for all configured targets

This allows to only link in the needed targets, reducing binary
size and more importantly link time.

Note that this is an incomplete implementation: currently,
LLVM does not have the plumbing which would allow to conditionally
link in AsmPrinter, AsmParser and Disassembler for the targets
which support them. This should be improved in the future.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194670 91177308-0d34-0410-b5e6-96231b3b80d8
bindings/ocaml/backends/META.llvm_backend.in [new file with mode: 0644]
bindings/ocaml/backends/Makefile [new file with mode: 0644]
bindings/ocaml/backends/Makefile.common [new file with mode: 0644]
bindings/ocaml/backends/backend_ocaml.c [new file with mode: 0644]
bindings/ocaml/backends/llvm_backend.ml.in [new file with mode: 0644]
bindings/ocaml/backends/llvm_backend.mli.in [new file with mode: 0644]