When cross compiling lldb-server, do not create a host build
for building lldb-tblgeb when LLDB_TABLEGEN_EXE is already
provided. This avoids an expensive and time-consuming build step
if lldb-tblgen was already built previously for host.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
This is a local patch we have been carrying in Chrome OS.
What we do to cross compile lldb-server:
- Create host build to build tools like llvm-tblgen, clang-tblgen, lldb-tblgen
- Cross compile llvm and clang libraries using the just build *tblgen.
- Cross compile lldb by setting the path to pre-cross compiled libraries and *tblgen binaries from step 1.
Without this patch, cross compiling lldb-server start yet another host build just to build lldb-tblgen which we want to avoid.
Also see https://chromium-review.googlesource.com/c/chromiumos/overlays/chromiumos-overlay/+/2851114/12/dev-util/lldb-server/lldb-server-12.0_pre416183.ebuild