[flang-commits] [flang] d595378 - [flang] Fix building against LLVM dylib

Michał Górny via flang-commits flang-commits at lists.llvm.org
Mon Oct 24 09:14:17 PDT 2022


Author: Michał Górny
Date: 2022-10-24T18:14:03+02:00
New Revision: d5953785a45595345c567440bd19aa379d59fe8e

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

LOG: [flang] Fix building against LLVM dylib

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

Added: 
    

Modified: 
    flang/tools/bbc/CMakeLists.txt
    flang/tools/tco/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/flang/tools/bbc/CMakeLists.txt b/flang/tools/bbc/CMakeLists.txt
index 4c50d629197b..c8b1616b3b8f 100644
--- a/flang/tools/bbc/CMakeLists.txt
+++ b/flang/tools/bbc/CMakeLists.txt
@@ -1,3 +1,6 @@
+set(LLVM_LINK_COMPONENTS
+Passes
+)
 
 add_flang_tool(bbc bbc.cpp
 DEPENDS
@@ -20,5 +23,4 @@ FortranParser
 FortranEvaluate
 FortranSemantics
 FortranLower
-LLVMPasses
 )

diff  --git a/flang/tools/tco/CMakeLists.txt b/flang/tools/tco/CMakeLists.txt
index e78124996b7d..4a3e2a8359ba 100644
--- a/flang/tools/tco/CMakeLists.txt
+++ b/flang/tools/tco/CMakeLists.txt
@@ -1,3 +1,7 @@
+set(LLVM_LINK_COMPONENTS
+  Passes
+)
+
 add_flang_tool(tco tco.cpp)
 llvm_update_compile_flags(tco)
 get_property(dialect_libs GLOBAL PROPERTY MLIR_DIALECT_LIBS)
@@ -22,5 +26,4 @@ target_link_libraries(tco PRIVATE
   MLIRParser
   MLIRSupport
   MLIRVectorToLLVM
-  LLVMPasses
 )


        


More information about the flang-commits mailing list