[llvm] dfcb890 - [LLVM-C] Fix linking failure introduced by 3351097.

Yingwei Zheng via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 1 02:21:31 PDT 2023


Author: Yingwei Zheng
Date: 2023-11-01T17:18:09+08:00
New Revision: dfcb8907c125828cbde1f22c21210c073f896213

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

LOG: [LLVM-C] Fix linking failure introduced by 3351097.

This patch adds missing dependencies required by the new unittest introduced by #68406.

Added: 
    

Modified: 
    llvm/unittests/Target/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/llvm/unittests/Target/CMakeLists.txt b/llvm/unittests/Target/CMakeLists.txt
index fb0775a67fe6d62..b10236a2948f823 100644
--- a/llvm/unittests/Target/CMakeLists.txt
+++ b/llvm/unittests/Target/CMakeLists.txt
@@ -4,7 +4,7 @@ foreach(t ${LLVM_TARGETS_TO_BUILD})
   endif()
 endforeach()
 
-set(LLVM_LINK_COMPONENTS Target AllTargetsCodeGens)
+set(LLVM_LINK_COMPONENTS Core Target AllTargetsCodeGens AllTargetsDescs AllTargetsInfos)
 
 add_llvm_unittest(TargetMachineCTests
   TargetMachineOptionsTest.cpp


        


More information about the llvm-commits mailing list