[PATCH] D79370: [flang] update tools/f18 to use LLVM_LINK_COMPONENTS.

Stephen Neuendorffer via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon May 4 15:05:28 PDT 2020


stephenneuendorffer created this revision.
Herald added subscribers: llvm-commits, mgorny.
Herald added a reviewer: DavidTruby.
Herald added a project: LLVM.

This will prevent conflicts with libLLVM.so when using LLVM_LINK_LLVM_DYLIB=on.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D79370

Files:
  flang/tools/f18/CMakeLists.txt


Index: flang/tools/f18/CMakeLists.txt
===================================================================
--- flang/tools/f18/CMakeLists.txt
+++ 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 @@
   FortranEvaluate
   FortranSemantics
   FortranLower
-  LLVMSupport
 )
 
 set(MODULES


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D79370.261938.patch
Type: text/x-patch
Size: 432 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200504/fe950722/attachment.bin>


More information about the llvm-commits mailing list