mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-24 14:33:40 +00:00
Kill off cmake magic to force linking.
- This isn't needed anymore, we require clients to call the appropriate initialization routines using TargetSelect.h. llvm-svn: 75871
This commit is contained in:
parent
17a807d7b3
commit
cf7cd54d69
@ -63,10 +63,6 @@ set(LLVM_ALL_TARGETS
|
|||||||
XCore
|
XCore
|
||||||
)
|
)
|
||||||
|
|
||||||
# List of targets whose asmprinters need to be forced to link
|
|
||||||
# into executables on some platforms (i.e. Windows):
|
|
||||||
set(LLVM_ASMPRINTERS_FORCE_LINK X86 PowerPC)
|
|
||||||
|
|
||||||
if( MSVC )
|
if( MSVC )
|
||||||
set(LLVM_TARGETS_TO_BUILD X86
|
set(LLVM_TARGETS_TO_BUILD X86
|
||||||
CACHE STRING "Semicolon-separated list of targets to build, or \"all\".")
|
CACHE STRING "Semicolon-separated list of targets to build, or \"all\".")
|
||||||
|
@ -27,36 +27,8 @@ endmacro(llvm_config)
|
|||||||
function(explicit_llvm_config executable)
|
function(explicit_llvm_config executable)
|
||||||
set( link_components ${ARGN} )
|
set( link_components ${ARGN} )
|
||||||
|
|
||||||
set(lfgs)
|
|
||||||
if (MSVC)
|
|
||||||
if( CMAKE_CL_64 )
|
|
||||||
set(include_lflag "/INCLUDE:")
|
|
||||||
else( CMAKE_CL_64 )
|
|
||||||
set(include_lflag "/INCLUDE:_")
|
|
||||||
endif()
|
|
||||||
foreach(c ${link_components})
|
|
||||||
if( c STREQUAL "jit" )
|
|
||||||
set(lfgs "${lfgs} ${include_lflag}X86TargetMachineModule")
|
|
||||||
endif( c STREQUAL "jit" )
|
|
||||||
list(FIND LLVM_TARGETS_TO_BUILD ${c} idx)
|
|
||||||
if( NOT idx LESS 0 )
|
|
||||||
set(lfgs "${lfgs} ${include_lflag}${c}TargetMachineModule")
|
|
||||||
list(FIND LLVM_ASMPRINTERS_FORCE_LINK ${c} idx)
|
|
||||||
if( NOT idx LESS 0 )
|
|
||||||
set(lfgs "${lfgs} ${include_lflag}${c}AsmPrinterForceLink")
|
|
||||||
endif()
|
|
||||||
endif()
|
|
||||||
endforeach(c)
|
|
||||||
endif ()
|
|
||||||
|
|
||||||
explicit_map_components_to_libraries(LIBRARIES ${link_components})
|
explicit_map_components_to_libraries(LIBRARIES ${link_components})
|
||||||
target_link_libraries(${executable} ${LIBRARIES})
|
target_link_libraries(${executable} ${LIBRARIES})
|
||||||
|
|
||||||
if( lfgs )
|
|
||||||
set_target_properties(${executable}
|
|
||||||
PROPERTIES
|
|
||||||
LINK_FLAGS ${lfgs})
|
|
||||||
endif()
|
|
||||||
endfunction(explicit_llvm_config)
|
endfunction(explicit_llvm_config)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user