[llvm] 5282a61 - [Attributor] Fix build of unittest with DBUILD_SHARED_LIBS=True

Alex Bradbury via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 14 21:06:20 PDT 2020


Author: Alex Bradbury
Date: 2020-07-15T05:05:31+01:00
New Revision: 5282a6186cfb1405756811815a0187c84881baee

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

LOG: [Attributor] Fix build of unittest with DBUILD_SHARED_LIBS=True

The dependencies in llvm/unittests/Transforms/IPO/CMakeLists.txt
introduced in revision 0750757e were incomplete, leading to link errors
for a DBUILD_SHARED_LIBS=True build.

Added: 
    

Modified: 
    llvm/unittests/Transforms/IPO/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/llvm/unittests/Transforms/IPO/CMakeLists.txt b/llvm/unittests/Transforms/IPO/CMakeLists.txt
index 8399b925512b..0e95518093a5 100644
--- a/llvm/unittests/Transforms/IPO/CMakeLists.txt
+++ b/llvm/unittests/Transforms/IPO/CMakeLists.txt
@@ -1,7 +1,10 @@
 set(LLVM_LINK_COMPONENTS
+  Analysis
+  AsmParser
   Core
-  Support
   IPO
+  Support
+  TransformUtils
   )
 
 add_llvm_unittest(IPOTests


        


More information about the llvm-commits mailing list