OSDN Git Service

[cmake] Re-commit: Remove redundant call to cmake when building host tools.
authorDon Hinton <hintonda@gmail.com>
Sat, 2 Dec 2017 19:12:38 +0000 (19:12 +0000)
committerDon Hinton <hintonda@gmail.com>
Sat, 2 Dec 2017 19:12:38 +0000 (19:12 +0000)
commitf4f388171b8cfb815995f6e045052aaa62211209
treea2ab833d87d31556e1db1fe6322510e22446218a
parent649eb90a701a197e26d4677b63d5296baa8de8d5
[cmake] Re-commit: Remove redundant call to cmake when building host tools.

Also pass CMAKE_(C|CXX)_COMPILER to add_custom_command.

Summary:
Remove the redundant, config-time call to cmake when
building host tools for cross compiles or optimized tablegen..

The config-time call to cmake is redundant because it will always get
called again when the CONFIGURE_LLVM_${target_name} target fires at
build-time.  This speeds up initial configuration, but has no affect
on build behavior.

Differential Revision: https://reviews.llvm.org/D40229

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@319620 91177308-0d34-0410-b5e6-96231b3b80d8
cmake/modules/CrossCompile.cmake