[CMake] Add configuration dirs as potential locations for llvm-lit and llvm-tblgen...
authorStefan Granitz <stefan.graenitz@gmail.com>
Wed, 5 Jun 2019 08:31:50 +0000 (08:31 +0000)
committerStefan Granitz <stefan.graenitz@gmail.com>
Wed, 5 Jun 2019 08:31:50 +0000 (08:31 +0000)
commitc7694624383637e3f4e3779a3626542c830856a7
tree8aa74cd7a469857af933fefe4b33ba37f3d3ca8f
parent3c850ca56035fca73fc07bfb138628d745aa3947
[CMake] Add configuration dirs as potential locations for llvm-lit and llvm-tblgen in standalone builds

Summary:
If the provided LLVM build-tree used a multi-configuration generator like Xcode, `LLVM_TOOLS_BINARY_DIR` will have a generator-specific placeholder to express `CMAKE_CFG_INTDIR`. Thus `llvm-lit` and `llvm-tblgen` won't be found.
D62878 exports the actual configuration types so we can fix the path and add them to the search paths for `find_program()`.

Reviewers: xiaobai, labath, stella.stamenova

Reviewed By: xiaobai, stella.stamenova

Subscribers: mgorny, lldb-commits

Tags: #lldb

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

llvm-svn: 362589
lldb/cmake/modules/LLDBStandalone.cmake