[flang-commits] [flang] b9a2837 - [flang][driver] Add missing dependency (shared library builds, NFC)

Andrzej Warzynski via flang-commits flang-commits at lists.llvm.org
Thu Sep 24 13:13:24 PDT 2020


Author: Andrzej Warzynski
Date: 2020-09-24T21:11:32+01:00
New Revision: b9a2837f1617ea94ae4b4be66d984ea9c7e7252c

URL: https://github.com/llvm/llvm-project/commit/b9a2837f1617ea94ae4b4be66d984ea9c7e7252c
DIFF: https://github.com/llvm/llvm-project/commit/b9a2837f1617ea94ae4b4be66d984ea9c7e7252c.diff

LOG: [flang][driver] Add missing dependency (shared library builds, NFC)

`flang-new` depends on libclangFrontend (it uses DiagnosticConsumer
classes from there). This patch adds the missing dependency in CMake.

clang::TextDiagnosticBuffer is only reported as missing when compiling
`flang-new` with BUILD_SHARED_LIBS=ON. This symbol is linked in
statically with libflangFrontend when BUILD_SHARED_LIBS=OFF.

Added: 
    

Modified: 
    flang/tools/flang-driver/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/flang/tools/flang-driver/CMakeLists.txt b/flang/tools/flang-driver/CMakeLists.txt
index d7bab277287f..5e34a33b8d99 100644
--- a/flang/tools/flang-driver/CMakeLists.txt
+++ b/flang/tools/flang-driver/CMakeLists.txt
@@ -17,6 +17,7 @@ target_link_libraries(flang-new
   flangFrontendTool
   clangDriver
   clangBasic
+  clangFrontend
   LLVMSupport
   LLVMTarget
   LLVMOption


        


More information about the flang-commits mailing list