[llvm] cf86a23 - Fix shared libs build break introduced in rG98ef93eabd76
Mircea Trofin via llvm-commits
llvm-commits at lists.llvm.org
Wed May 27 15:12:27 PDT 2020
Author: Mircea Trofin
Date: 2020-05-27T15:12:16-07:00
New Revision: cf86a234ba86acf0bb875e21d27833be36e08be4
URL: https://github.com/llvm/llvm-project/commit/cf86a234ba86acf0bb875e21d27833be36e08be4
DIFF: https://github.com/llvm/llvm-project/commit/cf86a234ba86acf0bb875e21d27833be36e08be4.diff
LOG: Fix shared libs build break introduced in rG98ef93eabd76
Added:
Modified:
llvm/lib/Analysis/ML/CMakeLists.txt
llvm/lib/Passes/CMakeLists.txt
Removed:
################################################################################
diff --git a/llvm/lib/Analysis/ML/CMakeLists.txt b/llvm/lib/Analysis/ML/CMakeLists.txt
index 05039a95ba73..ab4332fcf00f 100644
--- a/llvm/lib/Analysis/ML/CMakeLists.txt
+++ b/llvm/lib/Analysis/ML/CMakeLists.txt
@@ -1,9 +1,11 @@
set (SOURCES InlineFeaturesAnalysis.cpp)
-add_llvm_library(LLVMMLPolicies STATIC
+add_llvm_library(LLVMMLPolicies
${SOURCES}
DEPENDS
intrinsics_gen
+ LINK_LIBS
+ LLVMCore
)
diff --git a/llvm/lib/Passes/CMakeLists.txt b/llvm/lib/Passes/CMakeLists.txt
index 371a21c113dc..5df9ceac728b 100644
--- a/llvm/lib/Passes/CMakeLists.txt
+++ b/llvm/lib/Passes/CMakeLists.txt
@@ -13,4 +13,7 @@ add_llvm_component_library(LLVMPasses
DEPENDS
intrinsics_gen
+
+ LINK_LIBS
+ LLVMMLPolicies
)
More information about the llvm-commits
mailing list