OSDN Git Service

[cmake] Don't build Native llvm-config when cross compiling if passed by user.
authorDon Hinton <hintonda@gmail.com>
Sun, 21 Jan 2018 00:29:00 +0000 (00:29 +0000)
committerDon Hinton <hintonda@gmail.com>
Sun, 21 Jan 2018 00:29:00 +0000 (00:29 +0000)
commit18789ab5c48dce7cfdfbfcb63f86f51225ced536
tree0d1eb3965241151d84e57ee97336bdd44b01a37e
parent2d05f76ffa9d24a4ac13f46d8cf35db8b795cbef
[cmake] Don't build Native llvm-config when cross compiling if passed by user.

Summary:
Rename LLVM_CONFIG_EXE to LLVM_CONFIG_PATH, and avoid building it if
passed in by user.  This is the same way CLANG_TABLEGEN and
LLVM_TABLEGEN are handled, e.g., when -DLLVM_OPTIMIZED_TABLEGEN=ON is
passed.

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

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