[lldb-dev] [OS X]: building lldb with cmake

René J.V. Bertin via lldb-dev lldb-dev at lists.llvm.org
Fri Sep 9 12:37:01 PDT 2016


Hi,

I wanted to see how far I could get with a standalone build, so I copied the missing CheckAtomic.cmake file into the installed cmake/llvm directory, and tried to build lldb. 
It aborted at 93% because it tried to include a headerfile from the llvm source:

{{{
In file included from /opt/local/var/macports/build/_opt_local_site-ports_lang_llvm-3.9/lldb-3.9/work/llvm-3.9.0.src/tools/lldb/tools/lldb-mi/MICmdCmdData.cpp:45:
/opt/local/var/macports/build/_opt_local_site-ports_lang_llvm-3.9/lldb-3.9/work/llvm-3.9.0.src/tools/lldb/tools/lldb-mi/MIUtilParse.h:13:10: fatal error: 
      '../lib/Support/regex_impl.h' file not found
#include "../lib/Support/regex_impl.h"
         ^
1 error generated.
}}}

To be honest, I'm not sure how this could have worked with my approach of calling make in build/tools/lldb, but that looks like a clear bug if standalone builds are to be possible.

R.


More information about the lldb-dev mailing list