I believe this to have been a latent bug as the same expansion checks for the
existence of ${native_tgt}Info and ${native_tgt}Desc and only adds them if
they were compiled but unconditionally adds ${native_tgt}CodeGen.
This should fix llvm-clang-x86_64-win-fast which builds ARM only on an X86 host and similar builders.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@366612
91177308-0d34-0410-b5e6-
96231b3b80d8
list(APPEND expanded_components "${c}Utils")
endif()
elseif( c STREQUAL "nativecodegen" )
- list(APPEND expanded_components "${LLVM_NATIVE_ARCH}CodeGen")
+ if( TARGET LLVM${LLVM_NATIVE_ARCH}CodeGen )
+ list(APPEND expanded_components "${LLVM_NATIVE_ARCH}CodeGen")
+ endif()
if( TARGET LLVM${LLVM_NATIVE_ARCH}Desc )
list(APPEND expanded_components "${LLVM_NATIVE_ARCH}Desc")
endif()