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

Matthias Braun via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 30 21:13:51 PST 2015


MatzeB added a comment.

In http://reviews.llvm.org/D15004#298651, @beanz wrote:

> Since these are really simple source files, it is probably better to check CMAKE_CROSSCOMPILING and when cross-compiling use ExternalProject to configure host versions of the tools.


Looks like my cmake-foo is not strong enough for ExternalProject_Add.

For one CMAKE_CROSSCOMPILING is not set for me even though I am happily crosscompiling to aarch64 by just passing the respective -arch arm64 CFLAGS. Apart from that AddExternalProject_Add has a LOT of options and I am not really sure which ones I need or what to set them to. Are you sure this is better/simpler than two simple custom commands?


http://reviews.llvm.org/D15004





More information about the llvm-commits mailing list