Skip to content

Commit

Permalink
[flang][nfc] Update the CMake dependencies for flangFrontend
Browse files Browse the repository at this point in the history
The "FrontendActions.cpp" file (which is one of the source files for the
`flangFrontend` library) includes "Passes.h.inc" (indirectly, via
"CLOptions.inc"). This file is generated alongside other TableGen
outputs from the `FIROptTransformsPassIncGen` CMake target. This patch
adds `FIROptTransformsPassIncGen` to the list of build dependencies for
`flangFrontend`.

The lack of this dependency might cause non-determinstic build failures,
e.g. https://lab.llvm.org/buildbot/#/builders/160/builds/6210.

Differential Revision: https://reviews.llvm.org/D121218
  • Loading branch information
banach-space committed Mar 8, 2022
1 parent ced5472 commit b383b17
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions flang/lib/Frontend/CMakeLists.txt
Expand Up @@ -15,6 +15,7 @@ add_flang_library(flangFrontend
FIRBuilder
FIRDialect
FIRSupport
FIROptTransformsPassIncGen
MLIRIR
${dialect_libs}

Expand Down

0 comments on commit b383b17

Please sign in to comment.