[lldb][Docs] Add simpler "automatic" cross-compile option to build docs #65311
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The main way I cross build lldb is to point CMake at an existing host build to get the native tablegen tools. This is what we had documented before.
There is another option where you start from scratch and the host tools are built for you. This patch documents that and explains which one to choose.
Added another arm64 example which uses this. So the frst one is the "automatic" build and the second is the traditional approach.
For ease of copy paste and understanding, I've kept the full command in each section and noted the one difference between them.
Along the way I updated some of the preamble to explain the two approaches and updated some language e.g. removing "just ...". Eveyone's "just" is different, doubly so when cross-compiling.