llvm.org GIT mirror llvm / 68f4dae
[OCaml] Fix building of stub libraries git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194772 91177308-0d34-0410-b5e6-96231b3b80d8 Peter Zotov 7 years ago
3 changed file(s) with 8 addition(s) and 8 deletion(s). Raw diff Collapse all Expand all
88
99 LEVEL := ../..
1010 DIRS = llvm bitreader bitwriter irreader analysis target executionengine \
11 transforms linker
11 transforms linker backends
1212 ExtraMakefiles = $(PROJ_OBJ_DIR)/Makefile.ocaml
1313
1414 ocamldoc:
141141 endif
142142
143143 ifdef OCAMLSTUBS
144 SharedLib := $(OcamlDir)/dll$(LIBRARYNAME).$(SHLIBEXT)
144 SharedLib := $(OcamlDir)/dll$(LIBRARYNAME)$(SHLIBEXT)
145145 endif
146146
147147 ifdef TOOLNAME
162162 endif
163163
164164 ifdef OCAMLSTUBS
165 DestSharedLib := $(PROJ_libocamldir)/dll$(LIBRARYNAME).$(SHLIBEXT)
165 DestSharedLib := $(PROJ_libocamldir)/dll$(LIBRARYNAME)$(SHLIBEXT)
166166 endif
167167
168168 ##===- Dependencies -------------------------------------------------------===##
1818 #include "caml/alloc.h"
1919 #include "caml/memory.h"
2020
21 // TODO: Figure out how to call these only for targets which support them.
22 // LLVMInitialize ## target ## AsmPrinter();
23 // LLVMInitialize ## target ## AsmParser();
24 // LLVMInitialize ## target ## Disassembler();
25
2126 #define INITIALIZER1(target) \
2227 CAMLprim value llvm_initialize_ ## target(value Unit) { \
2328 LLVMInitialize ## target ## TargetInfo(); \
2429 LLVMInitialize ## target ## Target(); \
2530 LLVMInitialize ## target ## TargetMC(); \
26 // TODO: Figure out how to call these only for targets \
27 // which support them. \
28 // LLVMInitialize ## target ## AsmPrinter(); \
29 // LLVMInitialize ## target ## AsmParser(); \
30 // LLVMInitialize ## target ## Disassembler(); \
3131 return Val_unit; \
3232 }
3333