On Wed, Oct 29, 2014 at 1:46 PM, Matthew Gardiner <m...@csr.com> wrote:

> On Tue, 2014-10-28 at 23:40 -0700, Enrico Granata wrote:
> > With that said, building LLDB requires building LLVM and clang as
> prerequisites.
> > So there definitely is a clang available if LLDB is being built.
> > I wonder if one could setup things to bootstrap a clang with gcc, and
> then rebuild the entire LLVM, clang, lldb toolset with that built clang.
> >
>
> Yes, of course that's possible. But I'd argue that just makes things
> more complex, and less attractive for newcomers to the project.
>
> Incidentally, why does lldb require clang to be built as a prerequisite?
> Given that I can use it to debug a linux binary built with gcc, why do I
> need to build another compiler along the way?
>

Because LLDB re-uses parts of Clang ... grep for "clang::" in the codebase
and you'll see a lot of it.

I personally wish it weren't quite this way and that the layering were
different ... but that ship may have sailed a long time ago.

 - Bruce
_______________________________________________
lldb-dev mailing list
lldb-dev@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev

Reply via email to