fix link
This commit is contained in:
parent
c55020f6b6
commit
58c2f6de00
|
@ -7,11 +7,9 @@ add_library(compiler
|
||||||
dialect/onnx/onnx_ops.hpp
|
dialect/onnx/onnx_ops.hpp
|
||||||
dialect/krnl/krnl_helper.cpp
|
dialect/krnl/krnl_helper.cpp
|
||||||
dialect/krnl/krnl_helper.hpp
|
dialect/krnl/krnl_helper.hpp
|
||||||
pass/shape_inference_pass.cpp
|
|
||||||
pass/shape_inference_interface.hpp
|
pass/shape_inference_interface.hpp
|
||||||
dialect/onnx/onnxop.inc
|
dialect/onnx/onnxop.inc
|
||||||
pass/onnx_combine.cpp
|
pass/onnx_combine.cpp
|
||||||
pass/lower_frontend_to_krnl.cpp
|
|
||||||
pass/passes.hpp)
|
pass/passes.hpp)
|
||||||
|
|
||||||
# Include root src directory.
|
# Include root src directory.
|
||||||
|
|
|
@ -4,9 +4,6 @@ add_dependencies(onnf-opt gen_krnl_ops)
|
||||||
target_include_directories(onnf-opt PRIVATE ${ONNF_SRC_ROOT})
|
target_include_directories(onnf-opt PRIVATE ${ONNF_SRC_ROOT})
|
||||||
target_include_directories(onnf-opt PRIVATE ${ONNF_BIN_ROOT})
|
target_include_directories(onnf-opt PRIVATE ${ONNF_BIN_ROOT})
|
||||||
|
|
||||||
target_link_libraries(onnf-opt compiler ${MLIRLibs})
|
target_link_libraries(onnf-opt ${MLIRLibs} curses)
|
||||||
whole_archive_link_mlir(onnf-opt ${MLIRWholeArchiveLibs})
|
whole_archive_link_mlir(onnf-opt ${MLIRWholeArchiveLibs})
|
||||||
whole_archive_link_onnf(onnf-opt onnf_transform onnf_lower_frontend onnf_shape_inference)
|
whole_archive_link_onnf(onnf-opt compiler onnf_transform onnf_lower_frontend onnf_shape_inference)
|
||||||
|
|
||||||
# TODO: need to investigate how to whole-archive link compiler pass to onnf-opt.
|
|
||||||
target_link_libraries(onnf-opt compiler)
|
|
Loading…
Reference in New Issue