diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-07-15 07:52:36 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-07-15 07:52:36 +0000 |
commit | b97d02fd96fd4a0e3e482f9abd89b62b32eea9d1 (patch) | |
tree | 7cfded8e7cead0860a43c7c940fad09f3f5a6076 | |
parent | 7d181457082eaf0528a6fe8bbfff77c2a7877ddd (diff) | |
download | bcm5719-llvm-b97d02fd96fd4a0e3e482f9abd89b62b32eea9d1.tar.gz bcm5719-llvm-b97d02fd96fd4a0e3e482f9abd89b62b32eea9d1.zip |
Tweak CMake component lookup, I misunderstood what was happening here.though. :(
llvm-svn: 75757
-rwxr-xr-x | llvm/cmake/modules/LLVMConfig.cmake | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/cmake/modules/LLVMConfig.cmake b/llvm/cmake/modules/LLVMConfig.cmake index 9bcb02dc777..89e6edbc309 100755 --- a/llvm/cmake/modules/LLVMConfig.cmake +++ b/llvm/cmake/modules/LLVMConfig.cmake @@ -65,7 +65,6 @@ function(explicit_map_components_to_libraries out_libs) foreach(c ${link_components}) # add codegen/asmprinter list(FIND LLVM_TARGETS_TO_BUILD ${c} idx) - list(APPEND expanded_components "LLVM${c}Info") if( NOT idx LESS 0 ) list(FIND llvm_libs "LLVM${c}CodeGen" idx) if( NOT idx LESS 0 ) @@ -82,6 +81,10 @@ function(explicit_map_components_to_libraries out_libs) if( NOT asmidx LESS 0 ) list(APPEND expanded_components "LLVM${c}AsmPrinter") endif() + list(FIND llvm_libs "LLVM${c}Info" asmidx) + if( NOT asmidx LESS 0 ) + list(APPEND expanded_components "LLVM${c}Info") + endif() elseif( c STREQUAL "native" ) # TODO: we assume ARCH is X86. In this case, we must use nativecodegen # component instead. Do nothing, as in llvm-config script. |