[clang] [clang][modules-driver] Add dependency scan and dependency graph (PR #152770)
Mikael Holmen via cfe-commits
cfe-commits at lists.llvm.org
Mon Mar 23 00:59:23 PDT 2026
mikaelholmen wrote:
Hello @naveen-seth
Compiling with ```-DBUILD_SHARED_LIBS=ON``` fails with this patch:
```
FAILED: lib/libclangDriver.so.23.0git
[...]
ld.lld: error: undefined symbol: pthread_create
>>> referenced by ModulesDriver.cpp
>>> tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ModulesDriver.cpp.o:(std::thread::_M_thread_deps_never_run())
ld.lld: error: undefined symbol: pthread_join
>>> referenced by ModulesDriver.cpp
>>> tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ModulesDriver.cpp.o:(std::thread::_M_thread_deps_never_run())
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
```
https://github.com/llvm/llvm-project/pull/152770
More information about the cfe-commits
mailing list