diff options
| author | NAKAMURA Takumi <geek4civic@gmail.com> | 2014-02-10 10:52:19 +0000 |
|---|---|---|
| committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2014-02-10 10:52:19 +0000 |
| commit | 2f96171cb0793755ce64d1b7449a4cc4585a72d1 (patch) | |
| tree | c6ecde90cc74ed09c71265385c00e1eea6109124 /llvm/cmake/modules | |
| parent | 3686e38c3d74df38092855a1d12398b5dee9f0a9 (diff) | |
| download | bcm5719-llvm-2f96171cb0793755ce64d1b7449a4cc4585a72d1.tar.gz bcm5719-llvm-2f96171cb0793755ce64d1b7449a4cc4585a72d1.zip | |
[CMake] LLVMSupport should be responsible to provide system_libs.
llvm-svn: 201077
Diffstat (limited to 'llvm/cmake/modules')
| -rw-r--r-- | llvm/cmake/modules/AddLLVM.cmake | 5 | ||||
| -rw-r--r-- | llvm/cmake/modules/TableGen.cmake | 5 |
2 files changed, 0 insertions, 10 deletions
diff --git a/llvm/cmake/modules/AddLLVM.cmake b/llvm/cmake/modules/AddLLVM.cmake index 83f57a708a3..59add8d3597 100644 --- a/llvm/cmake/modules/AddLLVM.cmake +++ b/llvm/cmake/modules/AddLLVM.cmake @@ -238,10 +238,6 @@ function(llvm_add_library name) llvm_config(${name} ${ARG_LINK_COMPONENTS} ${LLVM_LINK_COMPONENTS}) - # Ensure that the system libraries always comes last on the - # list. Without this, linking the unit tests on MinGW fails. - link_system_libs( ${name} ) - if(LLVM_COMMON_DEPENDS) add_dependencies(${name} ${LLVM_COMMON_DEPENDS}) endif() @@ -330,7 +326,6 @@ macro(add_llvm_executable name) if( LLVM_COMMON_DEPENDS ) add_dependencies( ${name} ${LLVM_COMMON_DEPENDS} ) endif( LLVM_COMMON_DEPENDS ) - link_system_libs( ${name} ) endmacro(add_llvm_executable name) diff --git a/llvm/cmake/modules/TableGen.cmake b/llvm/cmake/modules/TableGen.cmake index 700affab102..6e52e4d5341 100644 --- a/llvm/cmake/modules/TableGen.cmake +++ b/llvm/cmake/modules/TableGen.cmake @@ -117,15 +117,10 @@ macro(add_tablegen target project) endif() if( MINGW ) - target_link_libraries(${target} imagehlp psapi shell32) if(CMAKE_SIZEOF_VOID_P MATCHES "8") set_target_properties(${target} PROPERTIES LINK_FLAGS -Wl,--stack,16777216) endif(CMAKE_SIZEOF_VOID_P MATCHES "8") endif( MINGW ) - if( LLVM_ENABLE_THREADS AND HAVE_LIBPTHREAD AND NOT BEOS ) - target_link_libraries(${target} pthread) - endif() - if (${project} STREQUAL LLVM AND NOT LLVM_INSTALL_TOOLCHAIN_ONLY) install(TARGETS ${target} EXPORT LLVMExports |

