blob: 8e79e1847c6f3c78326a8c5bd2d0cdd6cc16068e [file] [log] [blame]
# Disable implicit-fallthrough, if used.
append_if(CXX_SUPPORTS_IMPLICIT_FALLTHROUGH_FLAG "-Wno-implicit-fallthrough" CMAKE_CXX_FLAGS)
add_llbuild_library(llvmSupport
Allocator.cpp
Atomic.cpp
ConvertUTF.c
ConvertUTFWrapper.cpp
Debug.cpp
Errno.cpp
ErrorHandling.cpp
FileUtilities.cpp
Hashing.cpp
IntrusiveRefCntPtr.cpp
Locale.cpp
ManagedStatic.cpp
MathExtras.cpp
Memory.cpp
MemoryBuffer.cpp
Mutex.cpp
Path.cpp
Process.cpp
Program.cpp
Signals.cpp
SmallPtrSet.cpp
SmallVector.cpp
SourceMgr.cpp
StringExtras.cpp
StringMap.cpp
StringRef.cpp
Threading.cpp
TimeValue.cpp
Twine.cpp
Unicode.cpp
Valgrind.cpp
YAMLParser.cpp
circular_raw_ostream.cpp
raw_ostream.cpp
)
if(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
target_link_libraries(llvmSupport execinfo pthread)
endif()
if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
target_link_libraries(llvmSupport pthread dl)
endif()