[flang] fix shared library builds after D136428
authorJean Perier <jperier@nvidia.com>
Fri, 21 Oct 2022 11:43:03 +0000 (04:43 -0700)
committerJean Perier <jperier@nvidia.com>
Fri, 21 Oct 2022 11:43:03 +0000 (04:43 -0700)
commitfb8886d1265f86f96269fb1ccd9080f3ce73ebd6
tree02bc397efad6b457495c8d100927a68d52e81eea
parent5b567637e22bfa128514a5a9de7f3296423e8acd
[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
flang/lib/Optimizer/Builder/CMakeLists.txt