mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-26 23:32:58 +00:00
[CMake] LINK_COMPONENTS: Add also corresponding MCTargetDesc and TargetInfo as well, when target names or "nativecodegen" are specified.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212921 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a84c1fb652
commit
13764f7b18
@ -105,6 +105,9 @@ function(llvm_map_components_to_libnames out_libs)
|
||||
if( TARGET LLVM${c}AsmParser )
|
||||
list(APPEND expanded_components "LLVM${c}AsmParser")
|
||||
endif()
|
||||
if( TARGET LLVM${c}Desc )
|
||||
list(APPEND expanded_components "LLVM${c}Desc")
|
||||
endif()
|
||||
if( TARGET LLVM${c}Info )
|
||||
list(APPEND expanded_components "LLVM${c}Info")
|
||||
endif()
|
||||
@ -115,6 +118,12 @@ function(llvm_map_components_to_libnames out_libs)
|
||||
# already processed
|
||||
elseif( c STREQUAL "nativecodegen" )
|
||||
list(APPEND expanded_components "LLVM${LLVM_NATIVE_ARCH}CodeGen")
|
||||
if( TARGET LLVM${LLVM_NATIVE_ARCH}Desc )
|
||||
list(APPEND expanded_components "LLVM${LLVM_NATIVE_ARCH}Desc")
|
||||
endif()
|
||||
if( TARGET LLVM${LLVM_NATIVE_ARCH}Info )
|
||||
list(APPEND expanded_components "LLVM${LLVM_NATIVE_ARCH}Info")
|
||||
endif()
|
||||
elseif( c STREQUAL "backend" )
|
||||
# same case as in `native'.
|
||||
elseif( c STREQUAL "engine" )
|
||||
|
Loading…
x
Reference in New Issue
Block a user