[flang-commits] [flang] f432154 - [flang] update tools/f18 to use LLVM_LINK_COMPONENTS.
Stephen Neuendorffer via flang-commits
flang-commits at lists.llvm.org
Tue May 5 08:55:28 PDT 2020
Author: Stephen Neuendorffer
Date: 2020-05-05T08:55:17-07:00
New Revision: f432154d1bcfd61c9a8fcef9559917696fa09233
URL: https://github.com/llvm/llvm-project/commit/f432154d1bcfd61c9a8fcef9559917696fa09233
DIFF: https://github.com/llvm/llvm-project/commit/f432154d1bcfd61c9a8fcef9559917696fa09233.diff
LOG: [flang] update tools/f18 to use LLVM_LINK_COMPONENTS.
This will prevent conflicts with libLLVM.so when using LLVM_LINK_LLVM_DYLIB=on.
Differential Revision: https://reviews.llvm.org/D79370
Added:
Modified:
flang/tools/f18/CMakeLists.txt
Removed:
################################################################################
diff --git a/flang/tools/f18/CMakeLists.txt b/flang/tools/f18/CMakeLists.txt
index c3c43c04edd7..86434b253bef 100644
--- a/flang/tools/f18/CMakeLists.txt
+++ b/flang/tools/f18/CMakeLists.txt
@@ -1,7 +1,10 @@
+set(LLVM_LINK_COMPONENTS
+ Support
+ )
add_flang_tool(f18
dump.cpp
f18.cpp
-)
+ )
target_link_libraries(f18
PRIVATE
@@ -10,7 +13,6 @@ target_link_libraries(f18
FortranEvaluate
FortranSemantics
FortranLower
- LLVMSupport
)
set(MODULES
More information about the flang-commits
mailing list