summaryrefslogtreecommitdiff
path: root/cmake/config-ix.cmake
diff options
context:
space:
mode:
authorJonas Hahnfeld <hahnjo@hahnjo.de>2019-02-15 16:27:52 +0000
committerJonas Hahnfeld <hahnjo@hahnjo.de>2019-02-15 16:27:52 +0000
commit0166a9e5175baac4e0e5614952df1c945866710f (patch)
tree5b7195f86077ae80702b0e0da96b4af4628f0341 /cmake/config-ix.cmake
parent3a8f865f1a8407e11e305fae69cc833227f64ef8 (diff)
downloadcompiler-rt-0166a9e5175baac4e0e5614952df1c945866710f.tar.gz
[compiler-rt] Let CMake search for thread support
This is an educated guess to fix sanitizer-x86_64-linux after r354132. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@354143 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake/config-ix.cmake')
-rw-r--r--cmake/config-ix.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmake/config-ix.cmake b/cmake/config-ix.cmake
index 90192f7a6..a89ae7f70 100644
--- a/cmake/config-ix.cmake
+++ b/cmake/config-ix.cmake
@@ -120,6 +120,8 @@ check_library_exists(m pow "" COMPILER_RT_HAS_LIBM)
check_library_exists(pthread pthread_create "" COMPILER_RT_HAS_LIBPTHREAD)
check_library_exists(execinfo backtrace "" COMPILER_RT_HAS_LIBEXECINFO)
+find_package(Threads)
+
# Look for terminfo library, used in unittests that depend on LLVMSupport.
if(LLVM_ENABLE_TERMINFO)
foreach(library terminfo tinfo curses ncurses ncursesw)