From 1d9cb434b3ff6942ab9d1e1992f65481346e16ab Mon Sep 17 00:00:00 2001 From: Anders Waldenborg Date: Tue, 15 Oct 2013 12:08:59 +0000 Subject: Add AllTargetsBindings sublibrary instead of having static inlines in the llvm-c headers. This new library will be linked in when using the "all-targets" component and contains the LLVMInitializeAll* functions. This means that those functions will exist as real symbols in the shared library, and can therefore can be called from bindings that are using ffi the shared library. llvm-svn: 192690 --- llvm/lib/Target/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'llvm/lib/Target/CMakeLists.txt') diff --git a/llvm/lib/Target/CMakeLists.txt b/llvm/lib/Target/CMakeLists.txt index 02ac493b421..861c999c6bb 100644 --- a/llvm/lib/Target/CMakeLists.txt +++ b/llvm/lib/Target/CMakeLists.txt @@ -14,3 +14,5 @@ foreach(t ${LLVM_TARGETS_TO_BUILD}) message(STATUS "Targeting ${t}") add_subdirectory(${t}) endforeach() + +add_subdirectory("AllTargetsBindings") -- cgit v1.2.3