[llvm] [tools] Fix `LLVM_USE_SANITIZE_COVERAGE` build (PR #87722)

Justin Fargnoli via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 11 10:35:48 PDT 2024


================
@@ -1,5 +1,7 @@
 set(LLVM_LINK_COMPONENTS
   BitReader
+  Core
+  Support
----------------
justinfargnoli wrote:

To be frank, I don't have a strong enough understanding of the LLVM build system to properly articulate an answer. 

This change was necessary to get my local build working. 

My local build uses `-DBUILD_SHARED_LIBS=ON`.  When I tested `-DBUILD_SHARED_LIBS=OFF`, this change was not needed to use `-DLLVM_USE_SANITIZE_COVERAGE=ON`.

So, perhaps the transitive dependencies are not automatically added when using `-DBUILD_SHARED_LIBS=ON`. Does this seem reasonable to you @nikic? 


https://github.com/llvm/llvm-project/pull/87722


More information about the llvm-commits mailing list