fix build script
This commit is contained in:
parent
b55387ae72
commit
c55020f6b6
|
@ -4,9 +4,9 @@ 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 ${MLIRLibs})
|
target_link_libraries(onnf-opt compiler ${MLIRLibs})
|
||||||
whole_archive_link_mlir(onnf-opt ${MLIRWholeArchiveLibs})
|
whole_archive_link_mlir(onnf-opt ${MLIRWholeArchiveLibs})
|
||||||
whole_archive_link_onnf(onnf-opt compiler onnf_transform onnf_lower_frontend onnf_shape_inference)
|
whole_archive_link_onnf(onnf-opt onnf_transform onnf_lower_frontend onnf_shape_inference)
|
||||||
|
|
||||||
# TODO: need to investigate how to whole-archive link compiler pass to onnf-opt.
|
# TODO: need to investigate how to whole-archive link compiler pass to onnf-opt.
|
||||||
target_link_libraries(onnf-opt compiler)
|
target_link_libraries(onnf-opt compiler)
|
||||||
|
|
Loading…
Reference in New Issue