Files
clang-p2996/flang/lib/Optimizer/OpenMP/CMakeLists.txt
Michał Górny 6a2cc12229 [flang] Support linking to MLIR dylib (#120966)
Introduce a new `MLIR_LIBS` argument to `add_flang_library`, that uses
`mlir_target_link_libraries` to link the MLIR dylib alterantively to the
component libraries. Use it, along with a few inline
`mlir_target_link_libraries` in tools, to support linking Flang to MLIR
dylib rather than the static libraries.

With these changes, the vast majority of Flang can be linked
dynamically. The only parts still using static libraries are these
requiring MLIR test libraries, that are not included in the dylib.
2025-01-16 13:35:26 +00:00

36 lines
601 B
CMake

get_property(dialect_libs GLOBAL PROPERTY MLIR_DIALECT_LIBS)
add_flang_library(FlangOpenMPTransforms
FunctionFiltering.cpp
GenericLoopConversion.cpp
MapsForPrivatizedSymbols.cpp
MapInfoFinalization.cpp
MarkDeclareTarget.cpp
LowerWorkshare.cpp
DEPENDS
FIRDialect
HLFIROpsIncGen
FlangOpenMPPassesIncGen
${dialect_libs}
LINK_LIBS
FIRAnalysis
FIRBuilder
FIRCodeGen
FIRDialect
FIRDialectSupport
FIRSupport
FortranCommon
FortranEvaluate
HLFIRDialect
MLIR_LIBS
MLIRFuncDialect
MLIROpenMPDialect
MLIRIR
MLIRPass
MLIRTransformUtils
${dialect_libs}
)