From b9a2837f1617ea94ae4b4be66d984ea9c7e7252c Mon Sep 17 00:00:00 2001 From: Andrzej Warzynski Date: Thu, 24 Sep 2020 20:57:46 +0100 Subject: [PATCH] [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. --- flang/tools/flang-driver/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) 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