[flang-commits] [flang] 6f10998 - [flang][driver] Add missing dependency (shared library builds, NFC)
Andrzej Warzynski via flang-commits
flang-commits at lists.llvm.org
Fri Sep 25 01:56:57 PDT 2020
Author: Andrzej Warzynski
Date: 2020-09-25T09:52:49+01:00
New Revision: 6f10998ad80687a85633d8dda84146c57c49ca25
URL: https://github.com/llvm/llvm-project/commit/6f10998ad80687a85633d8dda84146c57c49ca25
DIFF: https://github.com/llvm/llvm-project/commit/6f10998ad80687a85633d8dda84146c57c49ca25.diff
LOG: [flang][driver] Add missing dependency (shared library builds, NFC)
`FlangFrontendTests` depends on libclangFrontend (it uses
DiagnosticConsumer classes from there). This patch adds the missing
dependency in CMake.
The missing dependency manifests itself only with BUILD_SHARED_LIBS=ON.
This symbol is linked in statically with libflangFrontend when
BUILD_SHARED_LIBS=OFF.
Added:
Modified:
flang/unittests/Frontend/CMakeLists.txt
Removed:
################################################################################
diff --git a/flang/unittests/Frontend/CMakeLists.txt b/flang/unittests/Frontend/CMakeLists.txt
index dd5cbedb0f91..54853a59adfe 100644
--- a/flang/unittests/Frontend/CMakeLists.txt
+++ b/flang/unittests/Frontend/CMakeLists.txt
@@ -6,5 +6,6 @@ target_link_libraries(FlangFrontendTests
PRIVATE
LLVMSupport
clangBasic
+ clangFrontend
flangFrontend
flangFrontendTool)
More information about the flang-commits
mailing list