Skip to content

Commit dcdca84

Browse files
committed
[clang][deps] Explicitly link pthreads
This is a speculative fix for link failure found by the RHEL 8 bot: https://lab.llvm.org/buildbot/#/builders/204/builds/3862. FAILED: lib/libclangDependencyScanning.so.21.0git /InProcessModuleCache.cpp.o: In function `(anonymous namespace)::ReaderWriterLock::tryLock()': InProcessModuleCache.cpp:(.text._ZN12_GLOBAL__N_116ReaderWriterLock7tryLockEv+0x1d): undefined reference to `pthread_rwlock_trywrlock' (cherry picked from commit 15ad84f)
1 parent d6c2aa5 commit dcdca84

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

clang/lib/Tooling/DependencyScanning/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,5 @@ add_clang_library(clangDependencyScanning
3030
clangLex
3131
clangSerialization
3232
clangTooling
33+
${LLVM_PTHREAD_LIB}
3334
)

0 commit comments

Comments
 (0)