[PATCH] D15004: cmake: Use custom target to compile timeit/fpcmp

Chris Bieneman via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 1 08:58:10 PST 2015


beanz added a comment.

CMAKE_CROSSCOMPILING is set by CMake when you explicitly set CMAKE_SYSTEM_NAME. Instead of setting the -arch flag, try setting CMAKE_TOOLCHAIN_FILE to point to the ios.cmake file in LLVM trunk, and set CMAKE_OSX_ARCHITECTURES to arm64.

There is an example of cross compiling LLVM here: http://llvm.org/docs/GettingStarted.html#cross-compiling-llvm


http://reviews.llvm.org/D15004





More information about the llvm-commits mailing list