llvm.org GIT mirror llvm / ab52ae8
Tweak CMake component lookup, I misunderstood what was happening here.though. :( git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75757 91177308-0d34-0410-b5e6-96231b3b80d8 Daniel Dunbar 10 years ago
1 changed file(s) with 4 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
6464 foreach(c ${link_components})
6565 # add codegen/asmprinter
6666 list(FIND LLVM_TARGETS_TO_BUILD ${c} idx)
67 list(APPEND expanded_components "LLVM${c}Info")
6867 if( NOT idx LESS 0 )
6968 list(FIND llvm_libs "LLVM${c}CodeGen" idx)
7069 if( NOT idx LESS 0 )
8079 list(FIND llvm_libs "LLVM${c}AsmPrinter" asmidx)
8180 if( NOT asmidx LESS 0 )
8281 list(APPEND expanded_components "LLVM${c}AsmPrinter")
82 endif()
83 list(FIND llvm_libs "LLVM${c}Info" asmidx)
84 if( NOT asmidx LESS 0 )
85 list(APPEND expanded_components "LLVM${c}Info")
8386 endif()
8487 elseif( c STREQUAL "native" )
8588 # TODO: we assume ARCH is X86. In this case, we must use nativecodegen