[Patch] Improvements for CMake cross compilation on OS X
Chris Bieneman
beanz at apple.com
Thu Aug 28 13:13:15 PDT 2014
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.
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.
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.
Thanks,
-Chris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cross-compile.diff
Type: application/octet-stream
Size: 7834 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140828/c551b7db/attachment.obj>
More information about the llvm-commits
mailing list