diff --git a/flang/tools/bbc/CMakeLists.txt b/flang/tools/bbc/CMakeLists.txt --- 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 @@ FortranEvaluate FortranSemantics FortranLower -LLVMPasses ) diff --git a/flang/tools/tco/CMakeLists.txt b/flang/tools/tco/CMakeLists.txt --- 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 @@ MLIRParser MLIRSupport MLIRVectorToLLVM - LLVMPasses )