<div dir="ltr">Adding folks with specific knowledge of the compiler-rt and cmake and the trickiness there...<div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Aug 28, 2014 at 1:13 PM, Chris Bieneman <span dir="ltr"><<a href="mailto:beanz@apple.com" target="_blank">beanz@apple.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The attached patch modifies how cross compiling is handled with CMake to make it possible to cross compile LLVM and Clang using a single CMake invocation. This patch works for LLVM & Clang with no additional patches required. It does not work for compiler-rt because of how compiler-rt's CMake configuration is implemented.<br>


<br>
The basic idea is similar to the existing cross compilation support. A directory must be configured to build host versions of tablegen tools and llvm-config. This directory can be user provided (and configured), or it can be created during the build. During a build the native build directory will be configured and built to supply the tablegen tools used during the build. A user could also explicitly provide the tablegen executables to run on the CMake command line.<br>


<br>
I do not know how many users there are using CMake to cross compile, and I would greatly appreciate it if anyone who is cross compiling LLVM using CMake could test these patches on their configuration.<br>
<br>
Thanks,<br>
-Chris<br>
<br>
<br>_______________________________________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@cs.uiuc.edu" target="_blank">llvm-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits</a><br>
<br></blockquote></div><br></div></div>