Expand pseudo-components before embedding in llvm-config
authorDaniel Sanders <daniel_l_sanders@apple.com>
Fri, 19 Jul 2019 20:38:05 +0000 (20:38 +0000)
committerDaniel Sanders <daniel_l_sanders@apple.com>
Fri, 19 Jul 2019 20:38:05 +0000 (20:38 +0000)
commite664319e7a12b328609dcc0c750c6147e7f357b2
tree8725561a92987c7b1c73de17e125fbd1a74de415
parente3401a9b8613706c1393afdf7d35a81f8c580c9a
Expand pseudo-components before embedding in llvm-config

Summary:
If you use pseudo-targets like AllTargetsCodeGens in LLVM_DYLIB_COMPONENTS
then a test will fail because `./bin/llvm-config --shared-mode` can't
handle these targets. We can fix this by expanding them before embedding
the string into llvm-config

Reviewers: bogner

Reviewed By: bogner

Subscribers: mgorny, llvm-commits

Tags: #llvm

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

llvm-svn: 366610
llvm/cmake/modules/LLVM-Config.cmake
llvm/tools/llvm-config/BuildVariables.inc.in
llvm/tools/llvm-config/CMakeLists.txt