llvm.org GIT mirror llvm / 8cca8f9
Teach Makefiles & CMake to link in the <TARGET>Info library when linking the TARGET component. - Also, updated some CMake library dependencies, it is still missing some though. :( git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75755 91177308-0d34-0410-b5e6-96231b3b80d8 Daniel Dunbar 10 years ago
2 changed file(s) with 21 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")
6768 if( NOT idx LESS 0 )
6869 list(FIND llvm_libs "LLVM${c}CodeGen" idx)
6970 if( NOT idx LESS 0 )
191192 set(MSVC_LIB_DEPS_LLVMTransformUtils LLVMAnalysis LLVMCore LLVMSupport LLVMTarget LLVMipa)
192193 set(MSVC_LIB_DEPS_LLVMipa LLVMAnalysis LLVMCore LLVMSupport)
193194 set(MSVC_LIB_DEPS_LLVMipo LLVMAnalysis LLVMCore LLVMSupport LLVMTarget LLVMTransformUtils LLVMipa)
195 set(MSVC_LIB_DEPS_LLVMARMInfo LLVMCore LLVMSupport)
196 set(MSVC_LIB_DEPS_LLVMAlphaInfo LLVMCore LLVMSupport)
197 set(MSVC_LIB_DEPS_LLVMCBackendInfo LLVMSupport)
198 set(MSVC_LIB_DEPS_LLVMCellSPUInfo LLVMSupport)
199 set(MSVC_LIB_DEPS_LLVMCppBackendInfo LLVMSupport)
200 set(MSVC_LIB_DEPS_LLVMIA64Info LLVMSupport)
201 set(MSVC_LIB_DEPS_LLVMMSILInfo LLVMSupport)
202 set(MSVC_LIB_DEPS_LLVMMSP430Info LLVMSupport)
203 set(MSVC_LIB_DEPS_LLVMMipsInfo LLVMSupport)
204 set(MSVC_LIB_DEPS_LLVMPIC16Info LLVMSupport)
205 set(MSVC_LIB_DEPS_LLVMPowerPCInfo LLVMCore LLVMSupport)
206 set(MSVC_LIB_DEPS_LLVMSparcInfo LLVMCore LLVMSupport)
207 set(MSVC_LIB_DEPS_LLVMX86Info LLVMCore LLVMSupport)
208 set(MSVC_LIB_DEPS_LLVMXCoreInfo LLVMSupport)
332332 foreach my $target (@TARGETS_BUILT) {
333333 # FIXME: Temporary, until we don't switch all targets
334334 if (defined $NAME_MAP{$target.'asmprinter'}) {
335 $NAME_MAP{$target} = [$target.'asmprinter', $target.'codegen']
335 $NAME_MAP{$target} = [$target.'info',
336 $target.'asmprinter',
337 $target.'codegen']
338 } else {
339 $NAME_MAP{$target} = [$target.'info',
340 $NAME_MAP{$target}[0]]
336341 }
337342 }
338343