[Reland][Runtimes] Merge 'compile_commands.json' files from runtimes build (#116303)
[llvm-project.git] / flang / tools / bbc / CMakeLists.txt
blob9abdcf17b6ebfd7de9b4df55daa633009213e6ff
1 set(LLVM_LINK_COMPONENTS
2   Passes
3   AllTargetsCodeGens
4   AllTargetsDescs
5   AllTargetsInfos
6   TargetParser
9 add_flang_tool(bbc bbc.cpp
10   DEPENDS
11   FIROptCodeGenPassIncGen
14 llvm_update_compile_flags(bbc)
15 get_property(dialect_libs GLOBAL PROPERTY MLIR_DIALECT_LIBS)
16 get_property(extension_libs GLOBAL PROPERTY MLIR_EXTENSION_LIBS)
18 target_link_libraries(bbc PRIVATE
19   CUFAttrs
20   CUFDialect
21   FIRDialect
22   FIRDialectSupport
23   FIRSupport
24   FIRTransforms
25   FIRBuilder
26   HLFIRDialect
27   HLFIRTransforms
28   flangFrontend
29   flangPasses
30   FlangOpenMPTransforms
31   ${dialect_libs}
32   ${extension_libs}
33   MLIRAffineToStandard
34   MLIRSCFToControlFlow
35   FortranCommon
36   FortranParser
37   FortranEvaluate
38   FortranSemantics
39   FortranLower