[CMake] Look up target subcomponents in LLVM_AVAILABLE_LIBS
In an installation using the all-contained libLLVM.so, individual components are not available as targets, so we have to look them up in LLVM_AVAILABLE_LIBS just like llvm_map_components_to_libnames does it. Here I don't think we need the capitalized names though because we know the right capitalization. But I might be wrong. This is required by dragonffi, who call llvm_map_components_to_libnames on a list containing ${LLVM_NATIVE_ARCH}. Downstream bug report: https://bugzilla.opensuse.org/show_bug.cgi?id=1180748. Differential Revision: https://reviews.llvm.org/D96670
Loading
Please sign in to comment