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

Zachary Turner via lldb-dev lldb-dev at lists.llvm.org
Fri Sep 9 13:00:34 PDT 2016


To be completely honest with you I don't even know why this class exists.
All it needs to do is use llvm's regex class.  The entire MIUtilParse.h /
.cpp files can be deleted as far as I'm concerned.

On Fri, Sep 9, 2016 at 12:45 PM Zachary Turner <zturner at google.com> wrote:

> Yes, this is a bug in LLDB.  You're welcome to try to fix it by changing
> it to include "llvm/Support/Regex.h" instead of this private header.  Not
> sure if you will run into any issues, but in theory I see no reason why it
> shouldn't work.
>
> On Fri, Sep 9, 2016 at 12:37 PM René J.V. Bertin via lldb-dev <
> lldb-dev at lists.llvm.org> wrote:
>
> 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.
> _______________________________________________
> lldb-dev mailing list
> lldb-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20160909/0efbe406/attachment.html>


More information about the lldb-dev mailing list