[PATCH] Cross-compilation document

Sean Silva silvas at purdue.edu
Wed Sep 4 19:51:26 PDT 2013


Overall, I like the content, but I feel like it is trying to be two
documents:

1. Specific instructions for a self-hosted cross-compiled LLVM/Clang,
including all the nitty-gritty "ugly" stuff specific to our particular
build. The audience of this document is LLVM/Clang developers. My gut is
that this belongs in LLVM's docs, but.

2. User-facing documentation for Clang users about advice and general
concepts related to using Clang for cross-compiling. The audience of this
document is Clang users in general, and in particular people "using clang
as a compiler", so that belongs under <
http://clang.llvm.org/docs/#using-clang-as-a-compiler> (this is the case
even if it uses cross-compiling LLVM/Clang itself as an example for
expository purposes).

I think it would benefit from being split up as such.


Also, I'd like for some of the MIPS folks (CC'd) to give feedback before
this gets committed.


-- Sean Silva


On Tue, Sep 3, 2013 at 2:16 PM, Renato Golin <renato.golin at linaro.org>wrote:

> Hi silvas,
>
> This is a draft of the cross-compilation document, explaining all
> arguments, hinting on their pitfalls, behaviour, and special meanings.
>
> It also contain a full use case: compiling LLVM+Clang with LLVM+Clang,
> from x86_64 to ARM.
>
> I'm not sure where is the best place for this document, Clang or LLVM
> (since it's related to both), but would be good to have a link to it from
> one of the core documents, since this is something that many people ask on
> the list about.
>
> http://llvm-reviews.chandlerc.com/D1584
>
> Files:
>   docs/HowToCrossCompile.rst
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130904/cae1ca21/attachment.html>


More information about the llvm-commits mailing list