Re-applies the reverted https://reviews.llvm.org/D90824 now that the link issue on BFD has been resolved. This reverts commit bb9b5d39712e39e15b22b36e8138075cea0cd7b5. Differential Revision: https://reviews.llvm.org/D91044
31 lines
537 B
CMake
31 lines
537 B
CMake
set(LLVM_OPTIONAL_SOURCES
|
|
ir.c
|
|
pass.c
|
|
)
|
|
|
|
set(LLVM_LINK_COMPONENTS
|
|
)
|
|
|
|
add_llvm_executable(mlir-capi-ir-test
|
|
ir.c
|
|
)
|
|
llvm_update_compile_flags(mlir-capi-ir-test)
|
|
|
|
get_property(dialect_libs GLOBAL PROPERTY MLIR_DIALECT_LIBS)
|
|
target_link_libraries(mlir-capi-ir-test
|
|
PRIVATE
|
|
MLIRPublicAPI
|
|
)
|
|
|
|
|
|
add_llvm_executable(mlir-capi-pass-test
|
|
pass.c
|
|
)
|
|
llvm_update_compile_flags(mlir-capi-pass-test)
|
|
|
|
get_property(dialect_libs GLOBAL PROPERTY MLIR_DIALECT_LIBS)
|
|
target_link_libraries(mlir-capi-pass-test
|
|
PRIVATE
|
|
MLIRPublicAPI
|
|
)
|