fix cmake torch-mlir-capi linking and bazel build (#2336)

wjw.emit_nonzero snapshot-20230724.909
Yuanqiang Liu 2023-07-24 12:38:56 +08:00 committed by GitHub
parent 026e8db2e4
commit 238c0501da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View File

@ -3,10 +3,12 @@ add_subdirectory(Conversion)
add_subdirectory(Dialect)
add_subdirectory(RefBackend)
get_property(extension_libs GLOBAL PROPERTY MLIR_EXTENSION_LIBS)
set(LinkedLibs
MLIRFuncDialect
MLIRIR
MLIRSupport
${extension_libs}
TorchMLIRTorchPasses
TorchMLIRTorchConversionDialect

View File

@ -811,6 +811,7 @@ cc_library(
":TorchMLIRTorchConversionPasses",
":TorchMLIRTorchDialect",
":TorchMLIRTorchPasses",
"@llvm-project//mlir:AllExtensions",
"@llvm-project//mlir:Dialect",
"@llvm-project//mlir:DialectUtils",
"@llvm-project//mlir:IR",