CMake: Support for cross-compiling. For now, requires a previously
[oota-llvm.git] / cmake / modules / CrossCompileLLVM.cmake
1 # TODO: Build a native tblgen when cross-compiling, if the user\r
2 # didn't set LLVM_TABLEGEN. Then, remove this check:\r
3 if( CMAKE_CROSSCOMPILING AND ${LLVM_TABLEGEN} STREQUAL "tblgen" )\r
4   message(FATAL_ERROR\r
5     "Set LLVM_TABLEGEN to the full route to a native tblgen executable")\r
6 endif()\r