forked from OSchip/llvm-project
[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:
parent
7a6627b835
commit
2f90e01a96
|
@ -3,6 +3,9 @@ add_flang_library(flangFrontend
|
|||
CompilerInvocation.cpp
|
||||
FrontendOptions.cpp
|
||||
|
||||
DEPENDS
|
||||
clangBasic
|
||||
|
||||
LINK_LIBS
|
||||
clangBasic
|
||||
clangDriver
|
||||
|
|
|
@ -1,6 +1,9 @@
|
|||
add_flang_library(flangFrontendTool
|
||||
ExecuteCompilerInvocation.cpp
|
||||
|
||||
DEPENDS
|
||||
clangBasic
|
||||
|
||||
LINK_LIBS
|
||||
clangBasic
|
||||
clangDriver
|
||||
|
|
Loading…
Reference in New Issue