[llvm-commits] [llvm] r128033 - in /llvm/trunk: CMakeLists.txt cmake/modules/AddLLVM.cmake
Oscar Fuentes
ofv at wanadoo.es
Mon Mar 21 15:53:52 PDT 2011
Author: ofv
Date: Mon Mar 21 17:53:51 2011
New Revision: 128033
URL: http://llvm.org/viewvc/llvm-project?rev=128033&view=rev
Log:
Removed workaround for unspecified build problem on MinGW.
Tested that MinGW/MSYS builds fine without that.
Modified:
llvm/trunk/CMakeLists.txt
llvm/trunk/cmake/modules/AddLLVM.cmake
Modified: llvm/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/CMakeLists.txt?rev=128033&r1=128032&r2=128033&view=diff
==============================================================================
--- llvm/trunk/CMakeLists.txt (original)
+++ llvm/trunk/CMakeLists.txt Mon Mar 21 17:53:51 2011
@@ -185,15 +185,6 @@
include(TableGen)
if( MINGW )
- get_system_libs(LLVM_SYSTEM_LIBS_LIST)
- foreach(l ${LLVM_SYSTEM_LIBS_LIST})
- set(LLVM_SYSTEM_LIBS "${LLVM_SYSTEM_LIBS} -l${l}")
- endforeach()
- set(CMAKE_CXX_STANDARD_LIBRARIES "${CMAKE_CXX_STANDARD_LIBRARIES}${LLVM_SYSTEM_LIBS}")
- set(CMAKE_C_STANDARD_LIBRARIES "${CMAKE_C_STANDARD_LIBRARIES}${LLVM_SYSTEM_LIBS}")
-endif()
-
-if( MINGW )
# People report that -O3 is unreliable on MinGW. The traditional
# build also uses -O2 for that reason:
llvm_replace_compiler_option(CMAKE_CXX_FLAGS_RELEASE "-O3" "-O2")
Modified: llvm/trunk/cmake/modules/AddLLVM.cmake
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/modules/AddLLVM.cmake?rev=128033&r1=128032&r2=128033&view=diff
==============================================================================
--- llvm/trunk/cmake/modules/AddLLVM.cmake (original)
+++ llvm/trunk/cmake/modules/AddLLVM.cmake Mon Mar 21 17:53:51 2011
@@ -84,11 +84,9 @@
if( LLVM_COMMON_DEPENDS )
add_dependencies( ${name} ${LLVM_COMMON_DEPENDS} )
endif( LLVM_COMMON_DEPENDS )
- if( NOT MINGW )
- get_system_libs(llvm_system_libs)
- if( llvm_system_libs )
- target_link_libraries(${name} ${llvm_system_libs})
- endif()
+ get_system_libs(llvm_system_libs)
+ if( llvm_system_libs )
+ target_link_libraries(${name} ${llvm_system_libs})
endif()
endmacro(add_llvm_executable name)
More information about the llvm-commits
mailing list