diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-07-16 00:35:05 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-07-16 00:35:05 +0000 |
commit | 5e5d4df69a40f2e39a973662289c4ff36cfacb5c (patch) | |
tree | 04a0e6d8b3bfcad8b42cac42c48ee5f66079b1d8 /cmake/modules/LLVMConfig.cmake | |
parent | 97b940365110932f631fb172ab7b3490709edd03 (diff) | |
download | external_llvm-5e5d4df69a40f2e39a973662289c4ff36cfacb5c.zip external_llvm-5e5d4df69a40f2e39a973662289c4ff36cfacb5c.tar.gz external_llvm-5e5d4df69a40f2e39a973662289c4ff36cfacb5c.tar.bz2 |
Kill off cmake magic to force linking.
- This isn't needed anymore, we require clients to call the appropriate
initialization routines using TargetSelect.h.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75871 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake/modules/LLVMConfig.cmake')
-rwxr-xr-x | cmake/modules/LLVMConfig.cmake | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/cmake/modules/LLVMConfig.cmake b/cmake/modules/LLVMConfig.cmake index 89e6edb..eb7c5ec 100755 --- a/cmake/modules/LLVMConfig.cmake +++ b/cmake/modules/LLVMConfig.cmake @@ -27,36 +27,8 @@ endmacro(llvm_config) function(explicit_llvm_config executable) 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}) target_link_libraries(${executable} ${LIBRARIES}) - - if( lfgs ) - set_target_properties(${executable} - PROPERTIES - LINK_FLAGS ${lfgs}) - endif() endfunction(explicit_llvm_config) |