<div dir="ltr"><div>Overall, I like the content, but I feel like it is trying to be two documents:</div><div><br></div><div>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.<br>
</div><div><br></div><div>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 <<a href="http://clang.llvm.org/docs/#using-clang-as-a-compiler">http://clang.llvm.org/docs/#using-clang-as-a-compiler</a>> (this is the case even if it uses cross-compiling LLVM/Clang itself as an example for expository purposes).</div>
<div><br></div><div>I think it would benefit from being split up as such.</div><div><br></div><div><br></div><div>Also, I'd like for some of the MIPS folks (CC'd) to give feedback before this gets committed.</div>
<div><br></div><div><div><br></div><div>-- Sean Silva</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Sep 3, 2013 at 2:16 PM, Renato Golin <span dir="ltr"><<a href="mailto:renato.golin@linaro.org" target="_blank">renato.golin@linaro.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hi silvas,<br>
<br>
This is a draft of the cross-compilation document, explaining all arguments, hinting on their pitfalls, behaviour, and special meanings.<br>
<br>
It also contain a full use case: compiling LLVM+Clang with LLVM+Clang, from x86_64 to ARM.<br>
<br>
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.<br>

<br>
<a href="http://llvm-reviews.chandlerc.com/D1584" target="_blank">http://llvm-reviews.chandlerc.com/D1584</a><br>
<br>
Files:<br>
  docs/HowToCrossCompile.rst<br>
</blockquote></div><br></div></div>