Always link the MLIR python bindings native extension to libMLIR.so
authorMehdi Amini <joker.eph@gmail.com>
Thu, 5 Nov 2020 02:29:40 +0000 (02:29 +0000)
committerMehdi Amini <joker.eph@gmail.com>
Thu, 5 Nov 2020 19:57:11 +0000 (19:57 +0000)
commita1229c9518672cedfe407654145bf7e2614769f7
tree3dddeb2b0997602fdb036066ad43db3193b0fe9d
parent264a6df353b7e7ac4269bc10467bd2a991db3173
Always link the MLIR python bindings native extension to libMLIR.so

The Python bindings now require -DLLVM_BUILD_LLVM_DYLIB=ON to build.
This change is needed to be able to build multiple Python native
extension without having each of them embedding a copy of MLIR, which
would make them incompatible with each other. Instead they should all
link to the same copy of MLIR.

Differential Revision: https://reviews.llvm.org/D90813
mlir/lib/Bindings/Python/CMakeLists.txt