[flang-commits] [flang] b383b17 - [flang][nfc] Update the CMake dependencies for `flangFrontend`

Andrzej Warzynski via flang-commits flang-commits at lists.llvm.org
Tue Mar 8 09:20:33 PST 2022


Author: Andrzej Warzynski
Date: 2022-03-08T17:19:32Z
New Revision: b383b17bf7afff4010f790bc73555a4cb8c2754e

URL: https://github.com/llvm/llvm-project/commit/b383b17bf7afff4010f790bc73555a4cb8c2754e
DIFF: https://github.com/llvm/llvm-project/commit/b383b17bf7afff4010f790bc73555a4cb8c2754e.diff

LOG: [flang][nfc] Update the CMake dependencies for `flangFrontend`

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

Added: 
    

Modified: 
    flang/lib/Frontend/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/flang/lib/Frontend/CMakeLists.txt b/flang/lib/Frontend/CMakeLists.txt
index 4a21b136bfe7f..4f54ab7d7ce70 100644
--- a/flang/lib/Frontend/CMakeLists.txt
+++ b/flang/lib/Frontend/CMakeLists.txt
@@ -15,6 +15,7 @@ add_flang_library(flangFrontend
   FIRBuilder
   FIRDialect
   FIRSupport
+  FIROptTransformsPassIncGen
   MLIRIR
   ${dialect_libs}
 


        


More information about the flang-commits mailing list