[bugpoint] Fix compilation of bugpoint-passes on Windows
authorAlexey Bader <alexey.bader@intel.com>
Tue, 24 Jan 2023 01:19:26 +0000 (17:19 -0800)
committerAlexey Bader <alexey.bader@intel.com>
Tue, 24 Jan 2023 01:42:16 +0000 (17:42 -0800)
Bugpoint also depends on libLLVMSupport.dll for 'llvm_unreachable'

Reviewed By: beanz

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

llvm/tools/bugpoint-passes/CMakeLists.txt

index eea3e23..6df49d7 100644 (file)
@@ -11,7 +11,7 @@ if( NOT LLVM_REQUIRES_RTTI )
 endif()
 
 if(WIN32 OR CYGWIN)
-  set(LLVM_LINK_COMPONENTS Core)
+  set(LLVM_LINK_COMPONENTS Core Support)
 endif()
 
 add_llvm_library( BugpointPasses MODULE BUILDTREE_ONLY