[flang] update tools/f18 to use LLVM_LINK_COMPONENTS.
authorStephen Neuendorffer <stephen.neuendorffer@xilinx.com>
Mon, 4 May 2020 21:49:53 +0000 (14:49 -0700)
committerStephen Neuendorffer <stephen.neuendorffer@xilinx.com>
Tue, 5 May 2020 15:55:17 +0000 (08:55 -0700)
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

index c3c43c0..86434b2 100644 (file)
@@ -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