[compiler-rt] Let CMake search for thread support
authorJonas Hahnfeld <hahnjo@hahnjo.de>
Fri, 15 Feb 2019 16:27:52 +0000 (16:27 +0000)
committerJonas Hahnfeld <hahnjo@hahnjo.de>
Fri, 15 Feb 2019 16:27:52 +0000 (16:27 +0000)
This is an educated guess to fix sanitizer-x86_64-linux after r354132.

llvm-svn: 354143

compiler-rt/cmake/config-ix.cmake

index 90192f7..a89ae7f 100644 (file)
@@ -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)