[flang] Fix FIRSupport build race condition with HLFIRDialect
authorJean Perier <jperier@nvidia.com>
Fri, 21 Oct 2022 15:21:58 +0000 (08:21 -0700)
committerJean Perier <jperier@nvidia.com>
Fri, 21 Oct 2022 15:21:58 +0000 (08:21 -0700)
FIRSupports includes headers from HLFIRDialect that are generated at
compile time. Therefore it must wait until these headers have been
generated.

Fix flang bot failures:
https://lab.llvm.org/buildbot/#/builders/173/builds/10304

flang/lib/Optimizer/Support/CMakeLists.txt

index 779e207..4490c40 100644 (file)
@@ -8,6 +8,7 @@ add_flang_library(FIRSupport
 
   DEPENDS
   FIROpsIncGen
+  HLFIROpsIncGen
   MLIRIR
   ${dialect_libs}