Refactoring CMake CrossCompile module.
authorChris Bieneman <beanz@apple.com>
Thu, 12 Mar 2015 17:33:34 +0000 (17:33 +0000)
committerChris Bieneman <beanz@apple.com>
Thu, 12 Mar 2015 17:33:34 +0000 (17:33 +0000)
commita08ee010be2cb4b5796568fcb2e76a60ab4854fd
tree89df37755d1ed0e1f7d63cf3394d978d21179f79
parentf7a833adfd347bb5121198846330d2579d477b7b
Refactoring CMake CrossCompile module.

* put most of the cross-compiling support into a function llvm_create_cross_target_internal.
* when CrossCompile is included it still generates a NATIVE target.
* llvm_create_cross_target function takes a target_name which should match a toolchain.
* llvm_create_cross_target can now be used to target more than one cross-compilation target.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@232067 91177308-0d34-0410-b5e6-96231b3b80d8
cmake/modules/CrossCompile.cmake
cmake/modules/TableGen.cmake
tools/llvm-config/CMakeLists.txt