From fb8886d1265f86f96269fb1ccd9080f3ce73ebd6 Mon Sep 17 00:00:00 2001 From: Jean Perier Date: Fri, 21 Oct 2022 04:43:03 -0700 Subject: [PATCH] [flang] fix shared library builds after D136428 https://reviews.llvm.org/D136428 introduced the need for FIRBuilder library to link against HLFIRDialect to satisfy shared builds. The PrintFlangFunctionNames failure is unrelated, it is a build race because many of the headers included in FrontendAction are tablegen generated. So PrintFlangFunctionNames must wait until its headers can be safely used. See https://lab.llvm.org/buildbot/#/builders/191/builds/10340 --- flang/examples/PrintFlangFunctionNames/CMakeLists.txt | 1 + flang/lib/Optimizer/Builder/CMakeLists.txt | 2 ++ 2 files changed, 3 insertions(+) diff --git a/flang/examples/PrintFlangFunctionNames/CMakeLists.txt b/flang/examples/PrintFlangFunctionNames/CMakeLists.txt index 490f2ea895163..7ba91fa4ef3c3 100644 --- a/flang/examples/PrintFlangFunctionNames/CMakeLists.txt +++ b/flang/examples/PrintFlangFunctionNames/CMakeLists.txt @@ -6,5 +6,6 @@ add_llvm_library(flangPrintFunctionNames DEPENDS acc_gen + flangFrontend omp_gen ) diff --git a/flang/lib/Optimizer/Builder/CMakeLists.txt b/flang/lib/Optimizer/Builder/CMakeLists.txt index bd12fc234d905..2ace58a974f15 100644 --- a/flang/lib/Optimizer/Builder/CMakeLists.txt +++ b/flang/lib/Optimizer/Builder/CMakeLists.txt @@ -24,10 +24,12 @@ add_flang_library(FIRBuilder DEPENDS FIRDialect FIRSupport + HLFIRDialect ${dialect_libs} LINK_LIBS FIRDialect FIRSupport + HLFIRDialect ${dialect_libs} )