tensorflow / mlir

"Multi-Level Intermediate Representation" Compiler Infrastructure
1.74k stars 260 forks source link

Fix undefined reference to mlir::getElementTypeOrSelf(mlir::Type) #144

Closed denis0x0D closed 5 years ago

denis0x0D commented 5 years ago

Fix undefined reference when: cmake --build . --target check-mlir

mlir/lib/Dialect/StandardOps/Ops.cpp:2029: undefined reference to `mlir::getElementTypeOrSelf(mlir::Type)

The mlir::getElementTypeOrSelf is defined under libMLIRIIR.a, so the dependency is needed for the user.