Skip to content

Commit 15ad84f

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'
1 parent 482b952 commit 15ad84f

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
@@ -24,4 +24,5 @@ add_clang_library(clangDependencyScanning
2424
clangLex
2525
clangSerialization
2626
clangTooling
27+
${LLVM_PTHREAD_LIB}
2728
)

0 commit comments

Comments
 (0)