[lldb-dev] Standalone build broken after r269332
Eugene Zelenko via lldb-dev
lldb-dev at lists.llvm.org
Fri May 13 17:46:53 PDT 2016
Hi!
I tried to build standalone LLDB after r269332 change in
LLDBStandalone.cmake and encountered next problems:
It implies that LLVM and Clang were built separately, but they could
be built together, so next changes should be made as in previous
version:
- include("${LLVM_OBJ_ROOT}/lib${LLVM_LIBDIR_SUFFIX}/cmake/clang/ClangConfig.cmake")
+ if (EXISTS "${LLVM_OBJ_ROOT}/lib${LLVM_LIBDIR_SUFFIX}/cmake/clang/ClangConfig.cmake")
+ include("${LLVM_OBJ_ROOT}/lib${LLVM_LIBDIR_SUFFIX}/cmake/clang/ClangConfig.cmake")
+ endif()
Include path for generated LLVM headers were not added, so I made next tweak:
- include_directories("${LLVM_BINARY_DIR}/include" "${LLVM_MAIN_INCLUDE_DIR}")
+ include_directories("${LLVM_OBJ_ROOT}/include"
"${LLVM_BINARY_DIR}/include" "${LLVM_MAIN_INCLUDE_DIR}")
But biggest problem remains is how to specify Clang source and build
directories, since llvm-config doesn't tells about them.
Previously I set next variables, but situation may be different when
LLVM and Clang are built separately:
-DLLDB_PATH_TO_CLANG_BUILD=${LLVMBuildDir}/tools/clang
-DLLDB_PATH_TO_CLANG_SOURCE=${LLVMSourceDir}/tools/clang
-DLLDB_PATH_TO_LLVM_BUILD=${LLVMBuildDir}
-DLLDB_PATH_TO_LLVM_SOURCE=${LLVMSourceDir}
Eugene.
More information about the lldb-dev
mailing list