From b383b17bf7afff4010f790bc73555a4cb8c2754e Mon Sep 17 00:00:00 2001 From: Andrzej Warzynski Date: Tue, 8 Mar 2022 15:19:36 +0000 Subject: [PATCH] [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 --- flang/lib/Frontend/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) 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}