summaryrefslogtreecommitdiff
path: root/flang/tools
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2022-10-24 16:45:23 +0200
committerMichał Górny <mgorny@gentoo.org>2022-10-24 18:14:03 +0200
commitd5953785a45595345c567440bd19aa379d59fe8e (patch)
treeeee269da22f213fdfcfc2abfe759dd0145a227dc /flang/tools
parentd0d2772379bd89f1dce3c456520272678cf4b966 (diff)
downloadllvm-d5953785a45595345c567440bd19aa379d59fe8e.tar.gz
[flang] Fix building against LLVM dylib
Differential Revision: https://reviews.llvm.org/D136607
Diffstat (limited to 'flang/tools')
-rw-r--r--flang/tools/bbc/CMakeLists.txt4
-rw-r--r--flang/tools/tco/CMakeLists.txt5
2 files changed, 7 insertions, 2 deletions
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
)