207
|
1 set(LLVM_OPTIONAL_SOURCES
|
|
2 null.cpp
|
|
3 )
|
|
4
|
|
5 get_property(dialect_libs GLOBAL PROPERTY MLIR_DIALECT_LIBS)
|
|
6 get_property(conversion_libs GLOBAL PROPERTY MLIR_CONVERSION_LIBS)
|
|
7 set(LLVM_LINK_COMPONENTS
|
|
8 Core
|
|
9 Support
|
|
10 AsmParser
|
|
11 )
|
|
12
|
|
13 if(MLIR_INCLUDE_TESTS)
|
|
14 set(test_libs
|
|
15 MLIRAffineTransformsTestPasses
|
|
16 MLIRShapeTestPasses
|
|
17 MLIRSPIRVTestPasses
|
|
18 MLIRTestAnalysis
|
|
19 MLIRTestDialect
|
|
20 MLIRTestIR
|
|
21 MLIRTestPass
|
|
22 MLIRTestReducer
|
|
23 MLIRTestRewrite
|
|
24 MLIRTestTransforms
|
|
25 )
|
|
26 endif()
|
|
27
|
|
28 set(LIBS
|
|
29 ${dialect_libs}
|
|
30 ${conversion_libs}
|
|
31 ${test_libs}
|
|
32 MLIRLoopAnalysis
|
|
33 MLIRAnalysis
|
|
34 MLIRDialect
|
|
35 MLIRLspServerLib
|
|
36 MLIRParser
|
|
37 MLIRPass
|
|
38 MLIRTransforms
|
|
39 MLIRTransformUtils
|
|
40 MLIRSupport
|
|
41 MLIRIR
|
|
42 )
|
|
43
|
|
44 add_llvm_tool(mlir-lsp-server
|
|
45 mlir-lsp-server.cpp
|
|
46
|
|
47 DEPENDS
|
|
48 ${LIBS}
|
|
49 )
|
|
50 target_link_libraries(mlir-lsp-server PRIVATE ${LIBS})
|
|
51 llvm_update_compile_flags(mlir-lsp-server)
|
|
52
|
|
53 mlir_check_all_link_libraries(mlir-lsp-server)
|