1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 03:02:36 +01:00

Tweak CMake component lookup, I misunderstood what was happening here.though. :(

llvm-svn: 75757
This commit is contained in:
Daniel Dunbar 2009-07-15 07:52:36 +00:00
parent f62be62588
commit 0bfc229e3a

View File

@ -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.