[llvm] d2bb6d5 - [X86] Add explicit library dependency on LLVMInstrumentation

Min-Yih Hsu via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 24 14:09:17 PDT 2021


Author: Min-Yih Hsu
Date: 2021-08-24T14:08:17-07:00
New Revision: d2bb6d512c0f7da8749de51522a0a98f3f08242a

URL: https://github.com/llvm/llvm-project/commit/d2bb6d512c0f7da8749de51522a0a98f3f08242a
DIFF: https://github.com/llvm/llvm-project/commit/d2bb6d512c0f7da8749de51522a0a98f3f08242a.diff

LOG: [X86] Add explicit library dependency on LLVMInstrumentation

Patch 9588b685c6b2 introduced dependency on ASAN. But it didn't
explicitly put LLVMInstrumentation as one of the library dependencies
such that the build will fail if we're building LLVM as shared libraries
(i.e. -DBUILD_SHARED_LIBS=ON).
This patch explicitly links X86CodeGen against the Instrumentation
component.

Differential Revision: https://reviews.llvm.org/D108662

Added: 
    

Modified: 
    llvm/lib/Target/X86/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/X86/CMakeLists.txt b/llvm/lib/Target/X86/CMakeLists.txt
index a2816f6e5e846..d13c5d250554b 100644
--- a/llvm/lib/Target/X86/CMakeLists.txt
+++ b/llvm/lib/Target/X86/CMakeLists.txt
@@ -91,6 +91,7 @@ add_llvm_target(X86CodeGen ${sources}
   AsmPrinter
   CodeGen
   Core
+  Instrumentation
   MC
   SelectionDAG
   Support


        


More information about the llvm-commits mailing list