[flang][driver] Add missing dependency in CMake files

The Flang driver depends on libclangBasic. This means, among other
things, that some of the tablegen files (e.g. diagnostic definitions)
need to be generated before various libclangBasic header files can be
included (e.g. DiagnosticIDs.h). If we are lucky, libclangBasic is
indeed built before various flang driver libraries that depend on it
are. This patch makes sure that this is deterministic - i.e.
libclangBasic is built before the Flang driver libraries are.

Differential Revision: https://reviews.llvm.org/D88110
This commit is contained in:
Andrzej Warzynski 2020-09-22 19:38:04 +01:00
parent 7a6627b835
commit 2f90e01a96
2 changed files with 6 additions and 0 deletions

View File

@ -3,6 +3,9 @@ add_flang_library(flangFrontend
CompilerInvocation.cpp CompilerInvocation.cpp
FrontendOptions.cpp FrontendOptions.cpp
DEPENDS
clangBasic
LINK_LIBS LINK_LIBS
clangBasic clangBasic
clangDriver clangDriver

View File

@ -1,6 +1,9 @@
add_flang_library(flangFrontendTool add_flang_library(flangFrontendTool
ExecuteCompilerInvocation.cpp ExecuteCompilerInvocation.cpp
DEPENDS
clangBasic
LINK_LIBS LINK_LIBS
clangBasic clangBasic
clangDriver clangDriver