2020-10-09 09:29:59 +08:00
|
|
|
# npcomp-opt is always linked dynamically as we want to distribute the
|
|
|
|
# binaries with the python packages for hacking/debugging.
|
|
|
|
add_npcomp_executable(npcomp-opt npcomp-opt.cpp)
|
2020-04-27 08:55:15 +08:00
|
|
|
|
2021-07-28 07:10:10 +08:00
|
|
|
get_property(dialect_libs GLOBAL PROPERTY MLIR_DIALECT_LIBS)
|
|
|
|
get_property(conversion_libs GLOBAL PROPERTY MLIR_CONVERSION_LIBS)
|
|
|
|
|
2020-10-09 09:29:59 +08:00
|
|
|
target_link_libraries(npcomp-opt PRIVATE
|
2021-07-28 07:10:10 +08:00
|
|
|
MLIROptLib
|
|
|
|
NPCOMPInitAll
|
|
|
|
|
|
|
|
# TODO: Remove these in favor of interface deps.
|
|
|
|
${dialect_libs}
|
|
|
|
${conversion_libs}
|
2020-10-09 09:29:59 +08:00
|
|
|
)
|
2020-08-06 05:49:18 +08:00
|
|
|
|
|
|
|
mlir_check_all_link_libraries(npcomp-opt)
|