X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=lib%2FSystem%2FCMakeLists.txt;h=ac2830e80a0730beec96d3069be40fcbe0b4d8d7;hb=c8aef4b2ea23f7da3668f35872ee5bd8df28bcc0;hp=f311e86ef15e1f8e669b06c8417a0c0e71b4d4c4;hpb=41b39e9908ef22f01e51bbb1239d67fe23b53617;p=oota-llvm.git diff --git a/lib/System/CMakeLists.txt b/lib/System/CMakeLists.txt index f311e86ef15..ac2830e80a0 100644 --- a/lib/System/CMakeLists.txt +++ b/lib/System/CMakeLists.txt @@ -1,3 +1,8 @@ +set(LLVM_REQUIRES_RTTI 1) +if( MINGW ) + set(LLVM_REQUIRES_EH 1) +endif() + add_llvm_library(LLVMSystem Alarm.cpp Atomic.cpp @@ -17,6 +22,7 @@ add_llvm_library(LLVMSystem ThreadLocal.cpp Threading.cpp TimeValue.cpp + Valgrind.cpp Unix/Alarm.inc Unix/Host.inc Unix/Memory.inc @@ -41,7 +47,3 @@ add_llvm_library(LLVMSystem Win32/ThreadLocal.inc Win32/TimeValue.inc ) - -if( BUILD_SHARED_LIBS AND NOT WIN32 ) - target_link_libraries(LLVMSystem ${CMAKE_DL_LIBS}) -endif()