diff options
Diffstat (limited to 'docs/CMake.html')
-rw-r--r-- | docs/CMake.html | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/docs/CMake.html b/docs/CMake.html index 0d8cf62..ac07b0d 100644 --- a/docs/CMake.html +++ b/docs/CMake.html @@ -340,7 +340,7 @@ on Visual C++ and Xcode, <tt>"-sv"</tt> on others.</dd> - <dt><b>LLVM_LIT_TOOLS_DIR</b>:STRING</dt> + <dt><b>LLVM_LIT_TOOLS_DIR</b>:PATH</dt> <dd>The path to GnuWin32 tools for tests. Valid on Windows host. Defaults to "", then Lit seeks tools according to %PATH%. Lit can find tools(eg. grep, sort, &c) on LLVM_LIT_TOOLS_DIR at first, @@ -351,6 +351,11 @@ Function Interface library. If the library or its headers are installed on a custom location, you can set the variables FFI_INCLUDE_DIR and FFI_LIBRARY_DIR. Defaults to OFF.</dd> + + <dt><b>LLVM_CLANG_SOURCE_DIR</b>:PATH</dt> + <dd>Path to Clang's source directory. Defaults to tools/clang. + Clang will not be built when it is empty or it does not point valid + path.</dd> </dl> </div> @@ -423,8 +428,9 @@ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${LLVM_ROOT}/share/llvm/cmake") include(LLVMConfig) <b># Now set the header and library paths:</b> - include_directories( ${LLVM_ROOT}/include ) - link_directories( ${LLVM_ROOT}/lib ) + include_directories( ${LLVM_INCLUDE_DIRS} ) + link_directories( ${LLVM_LIBRARY_DIRS} ) + add_definitions( ${LLVM_DEFINITIONS} ) <b># Let's suppose we want to build a JIT compiler with support for # binary code (no interpreter):</b> llvm_map_components_to_libraries(REQ_LLVM_LIBRARIES jit native) |