[compiler-rt] r354143 - [compiler-rt] Let CMake search for thread support
Jonas Hahnfeld via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 15 08:27:52 PST 2019
Author: hahnfeld
Date: Fri Feb 15 08:27:52 2019
New Revision: 354143
URL: http://llvm.org/viewvc/llvm-project?rev=354143&view=rev
Log:
[compiler-rt] Let CMake search for thread support
This is an educated guess to fix sanitizer-x86_64-linux after r354132.
Modified:
compiler-rt/trunk/cmake/config-ix.cmake
Modified: compiler-rt/trunk/cmake/config-ix.cmake
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/cmake/config-ix.cmake?rev=354143&r1=354142&r2=354143&view=diff
==============================================================================
--- compiler-rt/trunk/cmake/config-ix.cmake (original)
+++ compiler-rt/trunk/cmake/config-ix.cmake Fri Feb 15 08:27:52 2019
@@ -120,6 +120,8 @@ check_library_exists(m pow "" COMPILER_R
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)
More information about the llvm-commits
mailing list