Re-commit: r366610 and r366612: Expand pseudo-components before embedding in llvm...
authorDaniel Sanders <daniel_l_sanders@apple.com>
Fri, 19 Jul 2019 22:46:47 +0000 (22:46 +0000)
committerDaniel Sanders <daniel_l_sanders@apple.com>
Fri, 19 Jul 2019 22:46:47 +0000 (22:46 +0000)
commit578e8fa8337dd203f4c450bc7100bb40652ca429
treeeae4f04d170036d74bf815adb7d09fed2c9d32c6
parentf3bfb85bcead8a53702e620f650a768f38ff6771
Re-commit: r366610 and r366612: Expand pseudo-components before embedding in llvm-config

There were two main problems:
* The 'nativecodegen' pseudo-component was unconditionally adding
  ${native_tgt}CodeGen even though it conditionally added ${native_tgt}Info and
  ${native_tgt}Desc. This has been fixed by making ${native_tgt}CodeGen
  conditional too
* The 'all' pseudo-component was causing library names like LLVMLLVMDemangle as
  the expansion was to a library name and not a component. There doesn't seem to
  be a list of available components anywhere so this has been fixed by moving the
  expansion of 'all' back where it was before. This manifested in different ways
  on different builders but it was the same root cause

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