[lldb-dev] [OS X]: building lldb with cmake
René J.V. Bertin via lldb-dev
lldb-dev at lists.llvm.org
Fri Sep 9 10:15:05 PDT 2016
On Friday September 09 2016 10:42:34 Pavel Labath wrote:
Hi Pavel
Thanks for pointing me to
> Hi Rene,
> lldb/cmake/modules/LLDBStandalone.cmake for how to set it up. As far
> as I know, the main trick is pointing your build to the llvm-config
> binary installed by the llvm package
So, adding
-DLLVM_CONFIG=/opt/local/libexec/llvm-3.9/bin/llvm-config -DLLVM_DIR=/opt/local/libexec/llvm-3.9/lib/cmake/llvm
almost allows cmake to succeed when pointed to ../llvm-3.9.0.src/tools/lldb, except for 1 pesky error:
-- Found LLVM_CONFIG as /opt/local/libexec/llvm-3.9/bin/llvm-config
-- Building with -fPIC
CMake Error at cmake/modules/LLDBStandalone.cmake:89 (include):
include could not find load file:
CheckAtomic
Call Stack (most recent call first):
CMakeLists.txt:3 (include)
and with reason: the path to that file is llvm-3.9.0.src/cmake/modules/CheckAtomic.cmake
> (you should just check out the
> lldb repo, without llvm and clang sources).
Yeah, one would hope for that, eh? :)
Thanks,
René
More information about the lldb-dev
mailing list