From f432154d1bcfd61c9a8fcef9559917696fa09233 Mon Sep 17 00:00:00 2001 From: Stephen Neuendorffer Date: Mon, 4 May 2020 14:49:53 -0700 Subject: [PATCH] [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 --- flang/tools/f18/CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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